3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array(-3, 3, 5, 7); function array_max($array) { $max = $array[0]; for ($i = 0; $i < count($array); $i++) { if ($array[$i] > $max) { $max = $array[$i]; } } echo $array; } array_max($x);
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/eLBYD on line 11 Array
Output for 4.3.0 - 5.3.29
Array