Fenced code blocks do work here, with syntax highlighting and a copy button. Try:
php
echo"hi";
A few gotchas: put the fence on its own line with a blank line before it, and write the language right after the opening fence (php, js, bash). Inline code uses single…