3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array(3,4,2,5,6,7,8,2,5,1,4,4,6); function minimum($list) { $len = count($list); $minimum = $list[0]; for ($i = 1; $i < $len; $i++) { if ($minimum > $list[$i]) { $minimum = $list[$i]; } } return $minimum; } // 1 echo minimum($list); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1
Output for hhvm-3.10.0

Process exited with code 153.