3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.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, hhvm-3.12.0
Array ( [dirname] => . [basename] => a [filename] => a )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.1.6
Array ( [dirname] => . [basename] => a )