3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total_width = 1500; $resolutions = [100, 50, 10, 1000]; rsort($resolutions); if ($total_width > $resolutions[0]){ //true foreach($resolutions as $break_point){ if ($total_width <= $break_point){ echo "this will never happen"; } } }

preferences:
33.69 ms | 404 KiB | 5 Q