3v4l.org

run code in 300+ PHP versions simultaneously
<?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.1.6, 5.2.0 - 5.2.17, 5.3.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.3.11, 4.4.0 - 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.

preferences:
213.15 ms | 1394 KiB | 123 Q