3v4l.org

run code in 300+ PHP versions simultaneously
<?php highlight_string("<?php echo 'test'; foreach ($foo as $bar) { if ($bar === true) { echo 'true'; } } ");
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $foo in /in/jElsA on line 5 Warning: Undefined variable $bar in /in/jElsA on line 5 Warning: Undefined variable $bar in /in/jElsA on line 6 <code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">'test'</span><span style="color: #007700">;<br />foreach&nbsp;(&nbsp;as&nbsp;)&nbsp;{<br />if&nbsp;(&nbsp;===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{<br />echo&nbsp;</span><span style="color: #DD0000">'true'</span><span style="color: #007700">;<br />}<br />}<br /></span> </span> </code>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.16 ms | 403 KiB | 8 Q