3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(dirname('/path/to/file.txt/////')); var_dump(basename('/path/to/file.txt/////'));
Output for 4.3.0 - 7.3.0rc3
string(8) "/path/to" string(8) "file.txt"