3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(max(array()));
Output for 5.2.5 - 5.6.30, hhvm-3.10.1 - 3.21.3, 7.0.0 - 7.2.1
Warning: max(): Array must contain at least one element in /in/WZF1i on line 3 bool(false)
Output for hhvm-3.22.0
Warning: max(): Array must contain at least one element in /in/WZF1i on line -1 bool(false)
Output for 4.3.2 - 5.2.4
Warning: max(): Array must contain atleast one element in /in/WZF1i on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Warning: max() [http://www.php.net/function.max]: Array must contain atleast one element in /in/WZF1i on line 3 bool(false)