3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1, 2, -2]; usort($arr, fn ($a, $b) => $a - $b); print_r($arr); $arr = [0.1, 0.2, -0.2]; usort($arr, fn ($a, $b) => $a - $b); print_r($arr);

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.30.0110.00721.07
8.5.20.0120.00717.71
8.5.10.0110.00719.61
8.5.00.0120.01119.92
8.4.180.0140.01019.64
8.4.170.0110.01223.79
8.4.160.0100.01323.89
8.4.150.0070.00516.80
8.4.140.0150.00717.84
8.4.130.0090.00417.95
8.4.120.0110.00820.41
8.4.110.0100.00819.14
8.4.100.0130.00917.70
8.4.90.0050.00517.93
8.4.80.0070.00218.00
8.4.70.0090.00619.43
8.4.60.0130.00819.64
8.4.50.0120.00717.66
8.4.40.0050.00317.58
8.4.30.0110.00820.36
8.4.20.0080.00022.35
8.4.10.0120.00823.89
8.3.300.0110.00920.77
8.3.290.0130.00718.57
8.3.280.0130.00818.38
8.3.270.0120.00816.59
8.3.260.0130.00616.70
8.3.250.0090.00819.14
8.3.240.0120.00716.53
8.3.230.0050.00816.57
8.3.220.0100.00418.70
8.3.210.0110.00916.88
8.3.200.0110.00916.71
8.3.190.0100.00616.67
8.3.180.0070.00916.45
8.3.170.0040.01417.14
8.3.160.0090.01216.68
8.3.150.0080.00020.78
8.3.140.0090.00616.61
8.3.130.0070.00418.35
8.3.120.0030.00620.91
8.3.110.0060.00320.94
8.3.100.0000.00816.63
8.3.90.0180.00016.85
8.3.80.0080.00417.97
8.3.70.0100.01018.31
8.3.60.0070.01020.10
8.3.50.0190.00316.44
8.3.40.0100.01022.10
8.3.30.0070.00720.16
8.3.20.0040.00424.18
8.3.10.0060.00624.66
8.3.00.0040.00426.16
8.2.300.0110.00918.23
8.2.290.0120.00320.63
8.2.280.0040.00716.66
8.2.270.0150.00317.10
8.2.260.0100.00722.66
8.2.250.0120.00618.96
8.2.240.0060.00318.68
8.2.230.0060.00322.58
8.2.220.0040.01524.06
8.2.210.0080.00026.77
8.2.200.0100.00018.11
8.2.190.0100.01316.61
8.2.180.0030.01718.41
8.2.170.0110.00718.88
8.2.160.0070.01022.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0050.00319.89
8.2.110.0030.00622.07
8.2.100.0040.00817.84
8.2.90.0030.00617.96
8.2.80.0050.00318.91
8.2.70.0150.00379.33
8.2.60.0160.00279.33
8.2.50.0170.00279.33
8.2.40.0100.00779.33
8.2.30.0090.00879.33
8.2.20.0080.00479.33
8.2.10.0130.00479.33
8.2.00.0110.00679.33
8.1.340.0120.00817.77
8.1.330.0120.00716.70
8.1.320.0150.00616.22
8.1.310.0040.00418.53
8.1.300.0100.00018.12
8.1.290.0040.00418.88
8.1.280.0100.00325.92
8.1.270.0030.00624.66
8.1.260.0140.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00022.20
8.1.230.0000.01222.75
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0120.00579.33
8.1.190.0170.00179.33
8.1.180.0100.00879.33
8.1.170.0120.00579.33
8.1.160.0120.00479.33
8.1.150.0100.00879.33
8.1.140.0100.00779.33
8.1.130.0150.00179.33
8.1.120.0120.00479.33
8.1.110.0110.00479.33
8.1.100.0120.00479.33
8.1.90.0120.00579.33
8.1.80.0130.00479.33
8.1.70.0110.00679.33
8.1.60.0110.00779.33
8.1.50.0120.00679.33
8.1.40.0070.01179.33
8.1.30.0130.00579.33
8.1.20.0150.00479.33
8.1.10.0120.00779.33
8.1.00.0140.00379.33
8.0.300.0020.00520.14
8.0.290.0100.00679.33
8.0.280.0080.00879.33
8.0.270.0170.00379.33
8.0.260.0100.00679.33
8.0.250.0060.00979.33
8.0.240.0120.00479.33
8.0.230.0170.00079.33
8.0.220.0170.00079.33
8.0.210.0110.00579.33
8.0.200.0130.00379.33
8.0.190.0110.00679.33
8.0.180.0060.01179.33
8.0.170.0150.00279.33
8.0.160.0100.00679.33
8.0.150.0080.00879.33
8.0.140.0120.00479.33
8.0.130.0100.00679.33
8.0.120.0120.00579.33
8.0.110.0090.00779.33
8.0.100.0120.00479.33
8.0.90.0120.00679.33
8.0.80.0150.00379.33
8.0.70.0130.00379.33
8.0.60.0090.00779.33
8.0.50.0090.00679.33
8.0.30.0130.00379.33
8.0.20.0070.00779.33
8.0.10.0100.00779.33

preferences:
51.25 ms | 1123 KiB | 5 Q