3v4l.org

run code in 300+ PHP versions simultaneously
<?php $highlightedString = highlight_string("<?php \n 09;", true); var_dump($highlightedString); ?>
Output for 8.3.0 - 8.3.6
string(133) "<pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php 09</span><span style="color: #007700">;</span></code></pre>"
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
string(153) "<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php&nbsp;<br />&nbsp;09</span><span style="color: #007700">;</span> </span> </code>"
Output for 7.0.2 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33
string(153) "<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php&nbsp;<br />&nbsp;</span><span style="color: #007700">09;</span> </span> </code>"
Output for 7.0.0 - 7.0.1
Parse error: Invalid numeric literal in /in/XCWND(3) : highlighted code on line 2
Process exited with code 255.

preferences:
170.81 ms | 401 KiB | 183 Q