3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $src = '/foo/bar/baz.zip'; var_dump( $src, dirname( $src ), basename( $src ) );
Output for 7.3.0alpha1
string(16) "/foo/bar/baz.zip" string(8) "/foo/bar" string(7) "baz.zip"