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.80.0070.00216.75
8.5.70.0130.00518.48
8.5.60.0130.00616.67
8.4.230.0100.00619.66
8.4.220.0070.00419.71
8.4.210.0060.00419.68
8.4.90.0050.00317.91
8.3.320.0100.00318.43
8.3.310.0110.00718.51
8.3.180.0050.00316.67
8.3.50.0140.00516.77
8.2.320.0140.00618.24
8.2.310.0070.00519.89

preferences:
44.01 ms | 539 KiB | 5 Q