3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(dirname('/abc/acs')); var_dump(dirname('/abc')); var_dump(dirname('/')); var_dump(dirname('abc/acs')); var_dump(dirname('abc')); var_dump(dirname(''));