3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ 3 => 'a', 2 => 'b', 1 => 'a' ]; array_walk($test, fn(&$value, $key) => $value=['key'=>$key,'value'=>$value]); uasort($test, fn($a, $b) => $a['value'] <=> $b['value'] ?: $a['key'] <=> $b['key']); array_walk($test, fn(&$pair) => $pair=$pair['value']); var_dump($test);

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.3.60.0180.00416.50
8.3.50.0120.00617.87
8.3.40.0100.01018.73
8.3.30.0150.00318.61
8.3.20.0030.00524.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.180.0150.00025.92
8.2.170.0070.00719.10
8.2.160.0120.00322.96
8.2.150.0100.00725.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0100.00022.23
8.2.100.0110.00019.70
8.2.90.0050.00317.75
8.2.80.0000.00818.78
8.2.70.0000.00917.50
8.2.60.0050.00318.05
8.2.50.0000.00818.05
8.2.40.0080.00818.03
8.2.30.0000.00718.15
8.2.20.0040.00418.04
8.2.10.0040.00419.25
8.2.00.0060.00319.18
8.1.280.0150.00625.92
8.1.270.0030.00523.99
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0000.00919.34
8.1.230.0040.00717.82
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0040.00418.42
8.1.160.0040.00418.98
8.1.150.0020.00518.95
8.1.140.0000.00718.89
8.1.130.0030.00320.20
8.1.120.0090.00017.38
8.1.110.0030.00617.33
8.1.100.0030.00517.36
8.1.90.0040.00417.44
8.1.80.0070.00017.48
8.1.70.0020.00517.29
8.1.60.0030.00517.62
8.1.50.0000.01117.50
8.1.40.0060.00317.44
8.1.30.0040.00417.71
8.1.20.0040.00417.60
8.1.10.0070.00317.48
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0030.00320.21
8.0.270.0000.00818.02
8.0.260.0030.00320.12
8.0.250.0090.00016.97
8.0.240.0040.00416.86
8.0.230.0030.00317.02
8.0.220.0060.00016.91
8.0.210.0030.00616.79
8.0.200.0030.00316.89
8.0.190.0070.00016.97
8.0.180.0080.00016.90
8.0.170.0050.00316.93
8.0.160.0050.00216.86
8.0.150.0000.00716.72
8.0.140.0040.00416.90
8.0.130.0030.00313.27
8.0.120.0030.00516.84
8.0.110.0000.00716.77
8.0.100.0040.00416.89
8.0.90.0000.00716.80
8.0.80.0070.00716.91
8.0.70.0020.00516.80
8.0.60.0080.00016.94
8.0.50.0000.00716.75
8.0.30.0060.01116.95
8.0.20.0100.01017.04
8.0.10.0000.00717.07
8.0.00.0130.00616.78
7.4.330.0020.00215.55
7.4.320.0000.00916.65
7.4.300.0070.00016.60
7.4.290.0030.00516.56
7.4.280.0030.00516.55
7.4.270.0070.00016.52
7.4.260.0030.00313.31
7.4.250.0040.00416.49
7.4.240.0000.00716.50
7.4.230.0000.00716.55
7.4.220.0040.00316.59
7.4.210.0090.00816.56
7.4.200.0030.00316.70
7.4.130.0100.00716.43
7.4.120.0100.00616.47
7.4.110.0110.00616.43
7.4.100.0100.00716.35
7.4.90.0120.01216.46
7.4.80.0180.00016.27
7.4.70.0090.01416.50
7.4.60.0230.02416.52
7.4.50.0210.02116.19
7.4.40.0070.01516.33
7.4.30.0100.00716.20
7.4.20.0040.01316.47
7.4.10.0030.01316.36
7.4.00.0130.00616.36
7.3.330.0000.00716.01
7.3.320.0030.00312.95
7.3.310.0000.00716.17
7.3.300.0060.00016.04
7.3.290.0070.00716.17
7.3.280.0070.00716.09
7.3.260.0040.01316.18
7.3.230.0030.01316.11
7.3.210.0090.00616.36
7.3.200.0080.00816.18
7.3.190.0030.01216.05
7.3.180.0310.03115.96
7.3.170.0220.00716.36
7.3.160.0260.02316.38
7.3.150.0040.01216.15
7.3.140.0080.00816.39
7.3.130.0090.00615.98
7.3.120.0110.00615.95
7.3.110.0080.00916.12
7.3.100.0060.01016.08
7.3.90.0060.01216.08
7.3.80.0100.00716.03
7.3.70.0060.01216.18
7.3.60.0100.00615.95
7.3.50.0030.01816.20
7.3.40.0140.00816.13
7.3.30.0150.00516.09
7.3.20.0070.01116.14
7.3.10.0130.00316.13
7.3.00.0060.00916.21
7.2.330.0090.00916.41
7.2.320.0060.00916.14
7.2.310.0290.01616.02
7.2.300.0120.01616.11
7.2.290.0100.01016.13
7.2.280.0080.00816.22
7.2.270.0090.00916.17
7.2.260.0200.03716.01
7.2.250.0060.01216.48
7.2.240.0130.00316.29
7.2.230.0060.01216.51
7.2.220.0190.00316.03
7.2.210.0110.00816.16
7.2.200.0090.00916.19
7.2.190.0230.01616.38
7.2.180.0100.01316.11
7.2.170.0100.00716.13
7.2.160.0090.00916.26
7.2.150.0700.00716.46
7.2.140.0080.00816.39
7.2.130.0130.00316.36
7.2.120.0070.01016.27
7.2.110.0180.00016.42
7.2.100.0030.01816.25
7.2.90.0030.01916.25
7.2.80.0070.01416.36
7.2.70.0160.01916.29
7.2.60.0160.01216.23
7.2.50.0070.01116.30
7.2.40.0110.00716.42
7.2.30.0090.01216.27
7.2.20.0090.00916.17
7.2.10.0060.01216.11
7.2.00.0120.00916.51

preferences:
67.32 ms | 400 KiB | 5 Q