3v4l.org

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