3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In response to http://www.php.net/manual/en/language.constants.predefined.php#113130 // In fact, you can define magic constants too. (@__DIR__ == '__DIR__') && define('__DIR__', dirname(__FILE__)); echo "result of var_dump(__DIR__):\r\n"; var_dump(__DIR__); var_dump(__VERSION__);

preferences:
33.68 ms | 402 KiB | 5 Q