3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function takes_array($input) { echo "$input[0] + $input[1] = ", $input[0]+$input[1]; } takes_array("Hello");
Output for 7.1.0
H + e = Warning: A non-numeric value encountered in /in/LIe75 on line 5 Warning: A non-numeric value encountered in /in/LIe75 on line 5 0
Output for 4.3.0 - 7.0.14
H + e = 0