3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filename = urldecode("aaaa.dd%00/../cc"); var_dump(pathinfo($filename));
based on mWeUT
Output for 5.2.0 - 7.2.0
array(3) { ["dirname"]=> string(7) "aaaa.dd" ["basename"]=> string(2) "cc" ["filename"]=> string(2) "cc" }
Output for 5.0.0 - 5.1.6
array(2) { ["dirname"]=> string(7) "aaaa.dd" ["basename"]=> string(2) "cc" }
Output for 4.3.0 - 4.4.9
array(3) { ["dirname"]=> string(7) "aaaa.dd" ["basename"]=> string(7) "aaaa.dd" ["extension"]=> string(2) "dd" }