3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 10; $t = 20; $e = 0; echo "I: "+$i; echo "T: "+$t; echo "E: "+$e; addition($i,$t); echo "E: " + $e; function addition($i, $t) { $e = $i+$t; } ?>
Output for 7.1.0
Warning: A non-numeric value encountered in /in/I0Q98 on line 5 10 Warning: A non-numeric value encountered in /in/I0Q98 on line 6 20 Warning: A non-numeric value encountered in /in/I0Q98 on line 7 0 Warning: A non-numeric value encountered in /in/I0Q98 on line 9 0
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.0.14
102000
Output for hhvm-3.10.0

Process exited with code 153.