3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'a'; $c = 'c'; if ( $b = $a ) { echo '1'; } elseif ( $b = $c ) { echo '2'; } else { echo '3'; $b = 'b'; } echo $b;
Output for 4.3.0 - 7.2.0
1a