3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=4; if(a==4) echo "1"; else if(a==4) echo "2"; else echo "3"; ?>
Output for 7.2.0
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/a4jj6 on line 5 Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/a4jj6 on line 7 3
Output for 5.3.21 - 7.1.10
Notice: Use of undefined constant a - assumed 'a' in /in/a4jj6 on line 5 Notice: Use of undefined constant a - assumed 'a' in /in/a4jj6 on line 7 3