3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filename = "music.mp4AND3838"; if (substr($filename, -3) == 'mp3') { } elseif (substr($filename, -3) == 'mp4') { } elseif (substr($filename, -3) == 'pdf') { } elseif (substr($filename, -3) == 'epub') { } elseif (substr($filename, -3) == 'doc') { } elseif (substr($filename, -3) == 'zip') { } else { echo "exited"; }
based on LOaCh
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
exited