3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php highlight_string(' <?php echo "Lorem ipsum {$test[23]->$test2($$$test3[2][abc])} dolor sit amet."; ?> '); ?>
Output for 5.3.0 - 7.1.0
<code><span style="color: #000000"> <br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"Lorem&nbsp;ipsum&nbsp;</span><span style="color: #007700">{</span><span style="color: #0000BB">$test</span><span style="color: #007700">[</span><span style="color: #0000BB">23</span><span style="color: #007700">]-&gt;</span><span style="color: #0000BB">$test2</span><span style="color: #007700">($$</span><span style="color: #0000BB">$test3</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">][</span><span style="color: #0000BB">abc</span><span style="color: #007700">])}</span><span style="color: #DD0000">&nbsp;dolor&nbsp;sit&nbsp;amet."</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;<br /></span> </span> </code>
Output for 5.0.5 - 5.2.17
<code><span style="color: #000000"> <br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"Lorem&nbsp;ipsum&nbsp;{$test[23]-&gt;$test2($$$test3[2][abc])}&nbsp;dolor&nbsp;sit&nbsp;amet."</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;<br /></span> </span> </code>
Output for 5.0.0 - 5.0.4
<code><span style="color: #000000"> <br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"Lorem ipsum {$test[23]-&gt;$test2($$$test3[2][abc])} dolor sit amet."</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;<br /></span> </span> </code>
Output for 4.4.0 - 4.4.9
<code><font color="#000000"> <br /><font color="#0000BB">&lt;?php<br /></font><font color="#007700">echo&nbsp;</font><font color="#DD0000">"Lorem&nbsp;ipsum&nbsp;{$test[23]-&gt;$test2($$$test3[2][abc])}&nbsp;dolor&nbsp;sit&nbsp;amet."</font><font color="#007700">;<br /></font><font color="#0000BB">?&gt;<br /></font> </font> </code>
Output for 4.3.5 - 4.3.11
<code><font color="#000000"> <br /><font color="#0000BB">&lt;?php<br /></font><font color="#007700">echo </font><font color="#DD0000">"Lorem ipsum {$test[23]-&gt;$test2($$$test3[2][abc])} dolor sit amet."</font><font color="#007700">;<br /></font><font color="#0000BB">?&gt;<br /></font> </font> </code>
Output for 4.3.0 - 4.3.4
<code><font color="#000000"> <br /><font color="#0000BB">&lt;?php<br /></font><font color="#007700">echo </font><font color="#DD0000">"Lorem ipsum </font><font color="#007700">{</font><font color="#DD0000">$test</font><font color="#007700">[</font><font color="#DD0000">23</font><font color="#007700">]-&gt;</font><font color="#DD0000">$test2</font><font color="#007700">($$</font><font color="#DD0000">$test3</font><font color="#007700">[</font><font color="#DD0000">2</font><font color="#007700">][</font><font color="#DD0000">abc</font><font color="#007700">])}</font><font color="#DD0000"> dolor sit amet."</font><font color="#007700">;<br /></font><font color="#0000BB">?&gt;<br /></font> </font> </code>