3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['foo-test' => [1], '-' => [2], 'bar-test' => [3]]; uksort($a, function($x, $y) use ($a) { if (!isset($a[$x])) { throw new Exception("$x"); } if (!isset($a[$y])) { throw new Exception("$y"); } return $x < $y; });

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.70.0070.00716.74
8.3.60.0090.00616.88
8.3.50.0100.00821.13
8.3.40.0040.01118.78
8.3.30.0100.00318.83
8.3.20.0000.00720.30
8.3.10.0040.00421.95
8.3.00.0050.00321.44
8.2.190.0060.01016.58
8.2.180.0140.00016.50
8.2.170.0140.00722.96
8.2.160.0070.00720.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00520.84
8.2.120.0070.00026.35
8.2.110.0060.00319.07
8.2.100.0120.00018.05
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0050.00318.09
8.2.40.0000.00822.27
8.2.30.0000.00719.55
8.2.20.0080.00017.70
8.2.10.0030.00618.00
8.2.00.0040.00418.04
8.1.280.0070.01425.92
8.1.270.0120.00622.19
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0120.00622.66
8.1.230.0070.00317.71
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.70
8.1.160.0040.00420.64
8.1.150.0000.00718.92
8.1.140.0040.00419.49
8.1.130.0000.00717.77
8.1.120.0070.00017.45
8.1.110.0040.00417.48
8.1.100.0000.00817.40
8.1.90.0000.00717.38
8.1.80.0040.00417.45
8.1.70.0000.00717.41
8.1.60.0030.00517.49
8.1.50.0030.00617.51
8.1.40.0000.00717.57
8.1.30.0060.00317.59
8.1.20.0070.00017.70
8.1.10.0030.00617.57
8.1.00.0070.00017.51
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0070.00018.37
8.0.270.0040.00417.29
8.0.260.0000.00717.25
8.0.250.0040.00417.06
8.0.240.0000.00817.04
8.0.230.0000.00717.05
8.0.220.0030.00316.94
8.0.210.0000.00716.94
8.0.200.0030.00316.92
8.0.190.0080.00017.04
8.0.180.0040.00416.83
8.0.170.0080.00016.87
8.0.160.0060.00316.85
8.0.150.0030.00516.80
8.0.140.0040.00416.81
8.0.130.0000.00513.35
8.0.120.0060.00316.82
8.0.110.0000.00916.95
8.0.100.0070.00016.82
8.0.90.0000.00717.07
8.0.80.0060.01016.91
8.0.70.0040.00416.91
8.0.60.0030.00516.90
8.0.50.0040.00417.06
8.0.30.0080.00817.12
8.0.20.0090.01117.40
8.0.10.0040.00417.07
8.0.00.0080.00916.71
7.4.330.0050.00016.83
7.4.320.0030.00316.50
7.4.300.0000.00916.53
7.4.290.0040.00416.63
7.4.280.0070.00016.41
7.4.270.0000.00716.58
7.4.260.0030.00516.58
7.4.250.0040.00416.39
7.4.240.0000.00716.50
7.4.230.0030.00316.66
7.4.220.0060.01116.55
7.4.210.0030.01316.68
7.4.200.0070.00016.62
7.4.160.0090.00916.48
7.4.150.0070.01017.40
7.4.140.0090.01117.86
7.4.130.0100.00716.59
7.4.120.0080.00916.40
7.4.110.0070.01116.54
7.4.100.0030.01316.41
7.4.90.0030.01316.43
7.4.80.0060.01219.39
7.4.70.0060.00916.59
7.4.60.0090.00916.67
7.4.50.0070.01016.63
7.4.40.0100.01416.36
7.4.30.0130.01016.51
7.4.10.0050.00914.90
7.4.00.0060.00914.88
7.3.330.0030.00513.23
7.3.320.0000.00513.16
7.3.310.0030.00316.26
7.3.300.0070.00016.17
7.3.290.0090.00816.31
7.3.280.0060.01016.24
7.3.270.0150.00417.40
7.3.260.0110.00816.61
7.3.250.0110.00816.42
7.3.240.0070.01016.44
7.3.230.0060.01016.55
7.3.210.0040.01416.58
7.3.200.0110.00719.39
7.3.190.0120.00616.56
7.3.180.0070.01116.50
7.3.170.0100.00616.27
7.3.160.0140.00716.32
7.3.130.0110.00814.85
7.3.120.0050.01314.78
7.3.110.0090.00514.61
7.3.100.0060.01015.04
7.3.90.0110.00514.67
7.3.80.0020.01414.88
7.3.70.0090.00814.87
7.3.60.0060.00614.81
7.3.50.0100.00214.74
7.3.40.0050.01014.72
7.3.30.0080.00714.83
7.3.20.0060.00816.76
7.3.10.0080.00516.76
7.3.00.0060.00616.65
7.2.330.0080.00816.56
7.2.320.0130.01016.38
7.2.310.0170.00016.56
7.2.300.0120.00516.83
7.2.290.0000.01616.48
7.2.260.0050.00814.83
7.2.250.0080.00915.11
7.2.240.0050.01215.12
7.2.230.0080.00815.15
7.2.220.0060.00914.96
7.2.210.0070.00915.18
7.2.200.0020.01415.10
7.2.190.0060.01015.03
7.2.180.0040.00914.92
7.2.170.0070.00514.90
7.2.160.0090.00715.01
7.2.150.0100.00716.84
7.2.140.0020.01216.74
7.2.130.0030.01116.69
7.2.120.0040.01316.92
7.2.110.0070.01016.77
7.2.100.0080.00816.73
7.2.90.0040.00916.86
7.2.80.0040.01216.79
7.2.70.0080.00516.99
7.2.60.0050.00817.03
7.2.50.0060.00916.92
7.2.40.0120.00516.95
7.2.30.0050.01216.86
7.2.20.0110.00416.94
7.2.10.0040.00916.73
7.2.00.0040.00917.70
7.1.330.0050.01015.79
7.1.320.0110.00515.84
7.1.310.0060.00715.77
7.1.300.0050.00915.56
7.1.290.0000.01415.81
7.1.280.0080.00815.63
7.1.270.0080.00515.59
7.1.260.0060.00715.76
7.1.250.0060.00715.60
7.1.240.0070.00615.60
7.1.230.0020.01015.68
7.1.220.0060.00315.71
7.1.210.0050.00915.65
7.1.200.0070.00715.57
7.1.190.0050.00915.52
7.1.180.0050.00915.84
7.1.170.0100.00315.55
7.1.160.0060.00615.75
7.1.150.0030.01315.88
7.1.140.0040.01015.57
7.1.130.0020.01315.75
7.1.120.0080.00615.66
7.1.110.0100.00315.71
7.1.100.0070.00516.59
7.1.90.0030.01115.80
7.1.80.0060.00615.76
7.1.70.0040.00916.25
7.1.60.0090.00816.95
7.1.50.0080.00916.28
7.1.40.0050.00715.69
7.1.30.0070.00515.85
7.1.20.0060.00515.71
7.1.10.0090.00715.91
7.1.00.0040.03717.88
7.0.330.0050.00515.50
7.0.320.0050.00715.36
7.0.310.0050.00815.31
7.0.300.0050.01015.23
7.0.290.0040.00715.42
7.0.280.0060.00815.24
7.0.270.0080.00615.34
7.0.260.0080.00615.28
7.0.250.0020.01115.52
7.0.240.0060.00415.40
7.0.230.0040.00715.38
7.0.220.0030.00915.40
7.0.210.0050.00615.40
7.0.200.0180.01115.08
7.0.190.0070.00315.41
7.0.180.0040.00815.34
7.0.170.0030.01015.48
7.0.160.0050.00915.22
7.0.150.0000.01315.25
7.0.140.0000.01215.23
7.0.130.0030.00715.51
7.0.120.0070.00615.45
7.0.110.0040.01115.45
7.0.100.0060.00515.45
7.0.90.0100.00415.51
7.0.80.0000.01315.20
7.0.70.0100.00215.50
7.0.60.0100.02417.42
7.0.50.0100.03016.25
7.0.40.0080.03115.47
7.0.30.0130.02915.65
7.0.20.0130.03115.64
7.0.10.0070.02815.75
7.0.00.0100.02115.71
5.6.400.0030.01214.30
5.6.390.0080.00414.43
5.6.380.0100.00414.43
5.6.370.0090.00314.37
5.6.360.0040.00914.22
5.6.350.0020.01114.37
5.6.340.0090.00514.37
5.6.330.0080.00514.28
5.6.320.0090.00714.34
5.6.310.0030.01214.39
5.6.300.0020.01314.37
5.6.290.0040.00914.41
5.6.280.0020.03316.64
5.6.270.0060.00814.40
5.6.260.0050.00814.25
5.6.250.0020.01214.24
5.6.240.0080.00714.20
5.6.230.0070.00414.27
5.6.220.0050.01014.34
5.6.210.0040.02416.29
5.6.200.0050.02615.61
5.6.190.0070.02916.32
5.6.180.0090.02116.38
5.6.170.0090.01916.28
5.6.160.0070.03316.39
5.6.150.0090.02615.55
5.6.140.0040.03215.72
5.6.130.0060.03015.56
5.6.120.0070.03116.43
5.6.110.0040.02116.39
5.6.100.0040.03516.60
5.6.90.0040.03016.65
5.6.80.0070.02316.29
5.6.70.0050.00914.35
5.6.60.0020.01214.11
5.6.50.0050.01014.36
5.6.40.0060.00614.08
5.6.30.0020.00914.19
5.6.20.0070.00814.23
5.6.10.0030.01014.18
5.6.00.0030.01214.09
5.5.380.0030.01213.97
5.5.370.0070.00514.02
5.5.360.0080.00314.38
5.5.350.0080.02916.36
5.5.340.0050.02615.52
5.5.330.0070.02416.37
5.5.320.0220.02716.34
5.5.310.0090.02216.25
5.5.300.0070.03015.43
5.5.290.0030.03115.41
5.5.280.0070.02716.28
5.5.270.0110.02716.46
5.5.260.0070.03516.37
5.5.250.0070.03016.47
5.5.240.0040.02516.17
5.5.230.0020.01014.26
5.5.220.0060.00613.96
5.5.210.0060.00614.17
5.5.200.0020.01214.32
5.5.190.0020.01214.15
5.5.180.0060.00814.31
5.5.170.0050.00814.12
5.5.160.0040.01314.07
5.5.150.0080.00614.12
5.5.140.0030.00914.19
5.5.130.0010.01114.22
5.5.120.0060.00614.35
5.5.110.0030.01214.16
5.5.100.0040.00914.01
5.5.90.0100.00314.10
5.5.80.0090.00714.21
5.5.70.0060.00814.11
5.5.60.0070.00614.14
5.5.50.0080.00514.14
5.5.40.0060.00914.06
5.5.30.0020.01314.11
5.5.20.0060.00913.94
5.5.10.0070.00414.23
5.5.00.0070.00614.18

preferences:
53.95 ms | 401 KiB | 5 Q