3v4l.org

run code in 150+ 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 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<h1>aside</h1>