3v4l.org

run code in 200+ PHP versions simultaneously
<?php $f = new splfileinfo('some/random/filename.txt'); var_dump( $f->getpathname() );
Output for 7.1.25 - 7.3.4
string(24) "some/random/filename.txt"