3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dir = preg_replace( '@\K\(\d++\) : eval\(\)\'d code\z@', '', eval('return __FILE__;') ); var_dump(eval('return __FILE__;'), $dir);
Output for 4.4.9, 5.2.4 - 7.2.0
string(29) "/in/7Abc0(10) : eval()'d code" string(9) "/in/7Abc0"
Output for 4.3.0 - 4.4.8, 5.0.0 - 5.2.3
string(29) "/in/7Abc0(10) : eval()'d code" string(28) "/in/7Abc0(7) : eval()'d code"