3v4l.org

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