3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
string(29) "/in/7Abc0(10) : eval()'d code" string(9) "/in/7Abc0"
Output for hhvm-3.12.0
string(62) "/in/7Abc0(7)(ae8c7f3f2d1d3b2b75dd123d2a1b69b3) : eval()'d code" string(62) "/in/7Abc0(7)(ae8c7f3f2d1d3b2b75dd123d2a1b69b3) : eval()'d code"
Output for hhvm-3.10.0
string(63) "/in/7Abc0(21)(ae8c7f3f2d1d3b2b75dd123d2a1b69b3) : eval()'d code" string(63) "/in/7Abc0(21)(ae8c7f3f2d1d3b2b75dd123d2a1b69b3) : eval()'d code"
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"