3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getHighest($values = array()) { return end(sort($values)); } $array = array( 'a' => '123', 'b' => '119', 'c' => '123', 'd' => '8', ); $highest = getHighest($array);
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/ak6of on line 6 Warning: end() expects parameter 1 to be array, boolean given in /in/ak6of on line 6
Output for 5.3.20 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/ak6of on line 6 Warning: end() expects parameter 1 to be array, boolean given in /in/ak6of on line 6