3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $to_ignore = array("bin", "exe", "jpg"); $filename = "test/hello.binr"; $ext = pathinfo($filename, PATHINFO_EXTENSION); if (in_array($ext, $to_ignore)) { echo "will ignore"; } else { echo "Won't ignore"; } ?>
Output for 4.3.2 - 7.1.0
Won't ignore
Output for 4.3.0 - 4.3.1

Process exited with code 139.