3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1; if ($a === 2) { return 1; } elseif ($a === 1) { return 2; }
based on VB7WP
Output for 4.3.0 - 7.1.0