3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 5; $b = 10; $c = 11; if ((a<b)&&(a<c)) echo "Menor valor: $a"; elseif ((b<a)&&(b<c)) echo "Menor valor: $b"; elseif ((c<a)&&(c<b)) echo "Menor valor: $c"; else echo "Nao existe um unico valor menor"; ?>
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/3Jfcn on line 3 Warning: Use of undefined constant b - assumed 'b' (this will throw an Error in a future version of PHP) in /in/3Jfcn on line 3 Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/3Jfcn on line 3 Warning: Use of undefined constant c - assumed 'c' (this will throw an Error in a future version of PHP) in /in/3Jfcn on line 3 Menor valor: 5
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant a - assumed 'a' in /in/3Jfcn on line 3 Notice: Use of undefined constant b - assumed 'b' in /in/3Jfcn on line 3 Notice: Use of undefined constant a - assumed 'a' in /in/3Jfcn on line 3 Notice: Use of undefined constant c - assumed 'c' in /in/3Jfcn on line 3 Menor valor: 5