3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = range(0, 10); usort($array, withBool(...)); print(implode(', ', $array)).PHP_EOL; // 9, 10, 7, 8, 5, 6, 4, 3, 2, 1, 0 usort($array, withInt(...)); print(implode(', ', $array)).PHP_EOL; // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 function withBool($a, $b) : bool { return $a <=> $b; } function withInt($a, $b) : int { return $a <=> $b; } ?>

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.60.0090.00816.69
8.5.50.0110.00616.70
8.5.30.0060.01218.11
8.5.20.0100.00820.24
8.5.10.0110.00716.36
8.5.00.0110.01020.04
8.4.210.0070.01021.18
8.4.180.0160.00619.52
8.4.170.0120.00923.79
8.4.160.0100.01123.88
8.4.150.0060.00716.87
8.4.140.0110.01017.62
8.4.130.0120.00717.58
8.4.120.0110.01020.63
8.4.110.0110.00918.91
8.4.100.0120.00917.79
8.4.90.0040.00618.53
8.4.80.0060.00418.06
8.4.70.0140.00317.88
8.4.60.0100.00717.89
8.4.50.0170.00518.12
8.4.40.0150.00717.64
8.4.30.0200.00417.41
8.4.20.0200.00219.45
8.4.10.0180.00617.44
8.3.300.0140.00620.89
8.3.290.0110.01020.72
8.3.280.0110.00920.68
8.3.270.0100.01016.83
8.3.260.0110.00816.76
8.3.250.0110.00718.84
8.3.240.0120.00716.66
8.3.230.0100.00916.53
8.3.220.0050.00516.68
8.3.210.0160.00316.54
8.3.200.0140.00516.55
8.3.190.0160.00616.70
8.3.180.0160.00616.36
8.3.170.0190.00216.39
8.3.160.0180.00616.43
8.3.150.0160.00516.57
8.3.140.0180.00416.73
8.3.130.0180.00416.38
8.3.120.0140.00616.59
8.3.110.0180.00216.49
8.3.100.0140.00816.35
8.3.90.0180.00316.50
8.3.80.0190.00316.32
8.3.70.0190.00616.54
8.3.60.0150.00716.54
8.3.50.0200.00316.43
8.3.40.0250.00117.43
8.3.30.0130.00417.34
8.3.20.0150.00517.38
8.3.10.0120.00617.48
8.3.00.0090.00117.43
8.2.300.0130.00717.91
8.2.290.0080.01020.51
8.2.280.0130.00316.57
8.2.270.0160.00316.50
8.2.260.0120.00516.36
8.2.250.0140.00416.61
8.2.240.0120.00516.52
8.2.230.0140.00416.65
8.2.220.0130.00516.28
8.2.210.0150.00416.36
8.2.200.0130.00416.45
8.2.190.0160.00516.54
8.2.180.0160.00216.34
8.2.170.0190.00117.74
8.2.160.0140.00417.50
8.2.150.0120.00717.19
8.2.140.0160.00517.47
8.2.130.0160.00317.70
8.2.120.0120.00617.71
8.2.110.0130.00617.55
8.2.100.0170.00317.36
8.2.90.0160.00417.43
8.2.80.0160.00317.38
8.2.70.0150.00317.18
8.2.60.0150.00417.61
8.2.50.0170.00217.21
8.2.40.0160.00317.41
8.2.30.0180.00317.37
8.2.20.0160.00217.26
8.2.10.0130.00517.44
8.2.00.0130.00417.23
8.1.340.0140.00517.69

preferences:
40.88 ms | 864 KiB | 5 Q