3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 10; $width = 7; $height = 9; $array = [$length,$width,$height]; ASort($array); Echo "largest: " . $array[0] ."\n"; Echo "the other two " . $array[1] . " " . $array[2];

preferences:
24.08 ms | 404 KiB | 5 Q