3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $post = 'aside'; if ($post == ('aside')){ ?><h1>aside</h1><?php }elseif ($post == ('chat')){ ?><h1>chat</h1><?php }elseif ($post == ('gallery')){ ?><h1>gallery</h1><?php }elseif ($post == ('link')){ ?>link<?php }elseif ($post == ('quote')){ ?><h1>quote</h1><?php }elseif ($post == ('status')){ ?><h1>status</h1><?php }elseif ($post == ('audio')){ ?><h1>audio</h1><?php }elseif ($post == ('video')){ ?><h1>video</h1><?php }else{ ?><h1>standard</h1><?php} ?>
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected end of file in /in/mkuuN on line 1
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/mkuuN on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/mkuuN on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/mkuuN on line 1
Process exited with code 255.