3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php(@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__));
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function php() in /in/pq8Zb:1 Stack trace: #0 {main} thrown in /in/pq8Zb on line 1
Process exited with code 255.
Output for 5.4.34 - 5.6.28
Fatal error: Call to undefined function php() in /in/pq8Zb on line 1
Process exited with code 255.
Output for 4.3.0 - 5.4.32
<?php(@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__));