3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; } ?>

preferences:
43.52 ms | 402 KiB | 5 Q