3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pv = "First_name"; if($pv=="First_name") { echo '1'; } elseif($pv=="Lastname") { echo '2' ; }
based on fhKog
Output for 4.3.0 - 7.3.0rc3
1