3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php eval(show_source(__FILE__)); ?>
Output for 5.4.0 - 5.4.10, 7.0.0 - 7.2.0
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">eval(</span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span> </span> </code> Parse error: syntax error, unexpected end of file in /in/AEDOE(2) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.11 - 5.6.28
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">eval(</span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span> </span> </code> Parse error: syntax error, unexpected end of file in /in/AEDOE(2) : eval()'d code on line 1
Output for 5.1.0 - 5.3.29
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">eval(</span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span> </span> </code> Parse error: syntax error, unexpected $end in /in/AEDOE(2) : eval()'d code on line 1
Process exited with code 255.
Output for 5.0.0 - 5.0.5
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">eval(</span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span> </span> </code> Parse error: parse error, unexpected $ in /in/AEDOE(2) : eval()'d code on line 1
Process exited with code 255.
Output for 4.4.2 - 4.4.9
<code><font color="#000000"> <font color="#0000BB">&lt;?php<br /></font><font color="#007700">eval(</font><font color="#0000BB">show_source</font><font color="#007700">(</font><font color="#0000BB">__FILE__</font><font color="#007700">));<br /></font><font color="#0000BB">?&gt;</font> </font> </code> Parse error: syntax error, unexpected $end in /in/AEDOE(2) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
<code><font color="#000000"> <font color="#0000BB">&lt;?php<br /></font><font color="#007700">eval(</font><font color="#0000BB">show_source</font><font color="#007700">(</font><font color="#0000BB">__FILE__</font><font color="#007700">));<br /></font><font color="#0000BB">?&gt;</font> </font> </code> Parse error: parse error, unexpected $ in /in/AEDOE(2) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<code><font color="#000000"> <font color="#0000BB">&lt;?php<br /></font><font color="#007700">eval(</font><font color="#0000BB">show_source</font><font color="#007700">(</font><font color="#0000BB">__FILE__</font><font color="#007700">));<br /></font><font color="#0000BB">?&gt;</font> </font> </code> Parse error: parse error in /in/AEDOE(2) : eval()'d code on line 1
Process exited with code 255.