3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "/var/www/folder.com_v3/app/storage/photos/tmp/cmaRMi3IFI.jpg"; $var = pathinfo($str); var_dump($var);
Output for 5.2.0 - 7.1.0
array(4) { ["dirname"]=> string(45) "/var/www/folder.com_v3/app/storage/photos/tmp" ["basename"]=> string(14) "cmaRMi3IFI.jpg" ["extension"]=> string(3) "jpg" ["filename"]=> string(10) "cmaRMi3IFI" }
Output for 4.3.0 - 5.1.6
array(3) { ["dirname"]=> string(45) "/var/www/folder.com_v3/app/storage/photos/tmp" ["basename"]=> string(14) "cmaRMi3IFI.jpg" ["extension"]=> string(3) "jpg" }