3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dir = preg_replace( '@\K\(\d++\) : eval\(\)\'d code\z@', '', eval('return dirname(__FILE__);') ); echo $dir;
Output for 4.3.0 - 7.2.0
/in