3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(highlight_string('<?php phpinfo();', TRUE));
based on VPMkc
Output for 5.0.5 - 7.1.0
string(148) "<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php&nbsp;phpinfo</span><span style="color: #007700">();</span> </span> </code>"
Output for 5.0.0 - 5.0.4
string(143) "<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php phpinfo</span><span style="color: #007700">();</span> </span> </code>"
Output for 4.4.0 - 4.4.9
string(127) "<code><font color="#000000"> <font color="#0000BB">&lt;?php&nbsp;phpinfo</font><font color="#007700">();</font> </font> </code>"
Output for 4.3.0 - 4.3.11
string(122) "<code><font color="#000000"> <font color="#0000BB">&lt;?php phpinfo</font><font color="#007700">();</font> </font> </code>"