3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if($id == "first-slide") { // do this } else if($id == "slide-1") { // do this } else if($id == "slide-2") { // do this } else if($id == "slide-3") { // do this } else if($id == "slide-4") { // do this } else if($id == "last-slide") { // do this } else{ // do this } ?>
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/LdvTc on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ELSE in /in/LdvTc on line 2
Process exited with code 255.