3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(min(array())); print_r(max(array()));
Output for 5.2.5 - 7.2.0
Warning: min(): Array must contain at least one element in /in/VRWvc on line 2 Warning: max(): Array must contain at least one element in /in/VRWvc on line 3
Output for 4.3.2 - 5.2.4
Warning: min(): Array must contain atleast one element in /in/VRWvc on line 2 Warning: max(): Array must contain atleast one element in /in/VRWvc on line 3
Output for 4.3.0 - 4.3.1
Warning: min() [http://www.php.net/function.min]: Array must contain atleast one element in /in/VRWvc on line 2 Warning: max() [http://www.php.net/function.max]: Array must contain atleast one element in /in/VRWvc on line 3