3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo __DIR__
Output for 5.4.18 - 5.6.30, 7.0.0 - 7.1.7
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/XiYp1 on line 2
Process exited with code 255.
Output for hhvm-3.11.1 - 3.17.3
Fatal error: Uncaught Error: syntax error, unexpected $end, expecting ',' or ';' in /in/XiYp1:2 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: syntax error, unexpected $end, expecting ',' or ';' in /in/XiYp1 on line 2
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/eUfqh on line 3
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/XiYp1 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/eUfqh on line 3
Process exited with code 255.