3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array(1,2,3,4,5,1234123,6); $max = max($numbers); $pos = array_search($max, $numbers); echo "Position: ".$pos;

preferences:
28.19 ms | 405 KiB | 5 Q