3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num1 = 10; $num2 = 15; echo $num1 + $num2 . '<br>'; echo $num1 - $num2 . '<br>'; echo $num1 / $num2 . '<br>'; echo $num1 * $num2 . '<br>'; ($num1 + $num2) * $num1 = $num3; echo $num3; ?>
Output for 5.0.4 - 7.1.0
25<br>-5<br>0.66666666666667<br>150<br> Notice: Undefined variable: num3 in /in/4ZXQN on line 14 Notice: Undefined variable: num3 in /in/4ZXQN on line 16
Output for 4.3.0 - 5.0.3
25<br>-5<br>0.66666666666667<br>150<br> Notice: Undefined variable: num3 in /in/4ZXQN on line 14 Notice: Undefined variable: num3 in /in/4ZXQN on line 16