3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "welcome to my personal home page"; # a fake example; just imagine some lenghty code here if ($page_id == 0) { render_home_page(); } elsif ($page_id == 1) { render_contacts_page(); } elsif ($page_id == 2) { render_about_page(); } elsif ($page_id == 3) { render_services_page(); } elsif ($page_id == 4) { render_weather_page(); } elsif ($page_id == 5) { render_news_page(); } print "thank you for visiting!";
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '{' in /in/b05Tp on line 7
Process exited with code 255.