3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function x($a = 1, $b = 2) { echo 'a: ' + $a + PHP_EOL; echo 'b: ' + $b + PHP_EOL; } x(null, 3);
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/T47T8 on line 5 Warning: A non-numeric value encountered in /in/T47T8 on line 5 0 Warning: A non-numeric value encountered in /in/T47T8 on line 6 Warning: A non-numeric value encountered in /in/T47T8 on line 6 3
Output for 5.3.19 - 7.0.20
03