3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $href = "/test/link"; $file = "/media/doc/doc.pdf"; echo substr($href, -1, 1); echo pathinfo($href, PATHINFO_EXTENSION); echo substr($file, -1, 1); echo pathinfo($file, PATHINFO_EXTENSION);
Output for 4.3.2 - 7.2.0
kfpdf
Output for 4.3.0 - 4.3.1
k
Process exited with code 139.