3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filename = urldecode("aaaa.dd%00/../cc"); print_r(pathinfo($filename['extension']));
based on 8rBag
Output for 5.4.0 - 7.2.0
Warning: Illegal string offset 'extension' in /in/CIFVQ on line 5 Array ( [dirname] => . [basename] => a [filename] => a )
Output for 5.2.0 - 5.3.29
Array ( [dirname] => . [basename] => a [filename] => a )
Output for 4.3.0 - 5.1.6
Array ( [dirname] => . [basename] => a )