3v4l.org

run code in 500+ PHP versions simultaneously
<?php if ($priority < 0) { $priority = 0; } elseif ($priority > 1) { $priority = 1; } // ====================== $priority = max(0, min($priority, 1)); // 0.7 => 0,7 // 1.7 => 1 // -0.3 => 0

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.70.0130.00518.48

preferences:
47.99 ms | 480 KiB | 5 Q