3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = 1; if ($var == 0) { echo 'var is 0'; } elseif ($var == 1) { echo 'var is 1'; } elseif ($var == 2) { echo 'var is 2'; } ?>
based on tkei1
Output for 4.3.0 - 7.2.0
var is 1