3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function prende_array($input) { echo "$input[0] + $input[1] = ", $input[0]+$input[1]; } $imput=array(1,2) echo $input[0]; ?>
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/7cW5u on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/7cW5u on line 7
Process exited with code 255.