3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filename = "toto 45 loleme.docx"; var_dump(pathinfo($filename));
Output for 5.5.0 - 7.3.0beta1
array(4) { ["dirname"]=> string(1) "." ["basename"]=> string(19) "toto 45 loleme.docx" ["extension"]=> string(4) "docx" ["filename"]=> string(14) "toto 45 loleme" }