3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['foo-test' => [1], '-' => [2], 'bar-test' => [3]]; uksort($a, function($x, $y) { 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.60.0140.00016.50
8.3.50.0140.00521.21
8.3.40.0070.00718.97
8.3.30.0110.00418.84
8.3.20.0040.00420.18
8.3.10.0000.00821.60
8.3.00.0000.00821.91
8.2.180.0060.00917.00
8.2.170.0110.00422.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00521.00
8.2.120.0070.00026.35
8.2.110.0090.00019.38
8.2.100.0040.00718.05
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0050.00318.09
8.2.40.0040.00422.27
8.2.30.0000.00719.52
8.2.20.0040.00417.78
8.2.10.0080.00018.16
8.2.00.0050.00218.02
8.1.280.0110.00725.92
8.1.270.0190.00022.02
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00322.70
8.1.230.0110.00017.89
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0050.00317.24
8.1.180.0040.00418.10
8.1.170.0050.00318.64
8.1.160.0020.00520.70
8.1.150.0070.00020.79
8.1.140.0030.00519.64
8.1.130.0000.00717.71
8.1.120.0040.00317.39
8.1.110.0080.00017.41
8.1.100.0070.00017.44
8.1.90.0040.00417.43
8.1.80.0080.00017.50
8.1.70.0000.00917.37
8.1.60.0000.00817.66
8.1.50.0080.00017.55
8.1.40.0040.00417.53
8.1.30.0000.00917.71
8.1.20.0040.00417.60
8.1.10.0040.00417.63
8.1.00.0000.00717.50
8.0.300.0030.00618.77
8.0.290.0070.00016.58
8.0.280.0000.00718.49
8.0.270.0000.00817.21
8.0.260.0070.00017.28
8.0.250.0000.00716.93
8.0.240.0080.00017.05
8.0.230.0030.00316.97
8.0.220.0000.00716.95
8.0.210.0030.00316.99
8.0.200.0000.00617.07
8.0.190.0040.00416.98
8.0.180.0040.00416.97
8.0.170.0040.00416.88
8.0.160.0050.00316.96
8.0.150.0030.00516.81
8.0.140.0050.00316.90
8.0.130.0050.00013.38
8.0.120.0000.00816.90
8.0.110.0040.00416.89
8.0.100.0000.00716.83
8.0.90.0040.00416.83
8.0.80.0000.01717.00
8.0.70.0000.00816.84
8.0.60.0030.00316.87
8.0.50.0040.00416.82
8.0.30.0110.00917.21
8.0.20.0110.01017.40
8.0.10.0000.00716.98
8.0.00.0140.00416.81
7.4.330.0000.00616.79
7.4.320.0030.00316.52
7.4.300.0070.00016.45
7.4.290.0030.00516.51
7.4.280.0000.00716.48
7.4.270.0000.00716.54
7.4.260.0070.00316.49
7.4.250.0050.00316.46
7.4.240.0000.00716.50
7.4.230.0070.00016.41
7.4.220.0000.02116.60
7.4.210.0070.00816.61
7.4.200.0000.00716.50
7.4.160.0060.01316.62
7.4.150.0110.00617.40
7.4.140.0090.01417.86
7.4.130.0140.00416.49
7.4.120.0050.01316.58
7.4.110.0100.00716.53
7.4.100.0070.01716.65
7.4.90.0120.00616.45
7.4.80.0120.00919.39
7.4.70.0060.01016.40
7.4.60.0100.00616.50
7.4.50.0070.00716.34
7.4.40.0100.01016.41
7.4.30.0100.00716.69
7.4.00.0140.00314.98
7.3.330.0070.00013.19
7.3.320.0050.00013.21
7.3.310.0060.00016.38
7.3.300.0050.00216.33
7.3.290.0060.00916.37
7.3.280.0090.00616.39
7.3.270.0060.01217.40
7.3.260.0120.00616.45
7.3.250.0090.00916.42
7.3.240.0130.00616.48
7.3.230.0110.00716.45
7.3.210.0100.00716.47
7.3.200.0090.01319.39
7.3.190.0090.00916.39
7.3.180.0090.01216.47
7.3.170.0060.01016.56
7.3.160.0120.00416.42
7.3.120.0080.00814.88
7.3.110.0110.00014.58
7.3.100.0070.00714.97
7.3.90.0040.01114.94
7.3.80.0040.00814.94
7.3.70.0030.00614.72
7.3.60.0110.00314.92
7.3.50.0040.00814.81
7.3.40.0030.01014.91
7.3.30.0070.00714.96
7.3.20.0090.00016.67
7.3.10.0090.00916.60
7.3.00.0070.01116.77
7.2.330.0180.00316.39
7.2.320.0130.01016.55
7.2.310.0030.01416.40
7.2.300.0070.00916.39
7.2.290.0090.00616.79
7.2.240.0070.00714.91
7.2.230.0030.00615.22
7.2.220.0030.01015.03
7.2.210.0060.00614.90
7.2.200.0000.01014.89
7.2.190.0070.00415.07
7.2.180.0120.00015.07
7.2.170.0070.01015.06
7.2.160.0030.01315.15
7.2.150.0090.00316.64
7.2.140.0090.00616.91
7.2.130.0070.01116.93
7.2.120.0100.01016.76
7.2.110.0040.00716.61
7.2.100.0030.00616.65
7.2.90.0030.01016.62
7.2.80.0040.00816.82
7.2.70.0030.00717.02
7.2.60.0070.00716.84
7.2.50.0030.01016.80
7.2.40.0000.00916.86
7.2.30.0000.01416.74
7.2.20.0030.00917.03
7.2.10.0070.00716.60
7.2.00.0070.00718.01
7.1.330.0070.01015.78
7.1.320.0070.00715.40
7.1.310.0040.00815.62
7.1.300.0000.01215.73
7.1.290.0030.00915.79
7.1.280.0040.01115.68
7.1.270.0090.00615.91
7.1.260.0040.01115.64
7.1.250.0070.00715.79
7.1.200.0060.00615.70
7.1.100.0030.00917.81
7.1.70.0070.00416.92
7.1.60.0210.00319.40
7.1.50.0120.00916.85
7.1.00.0000.09322.36
7.0.200.0710.00314.50
7.0.60.0200.05721.71
7.0.50.0030.06017.88
7.0.40.0100.04720.15
7.0.30.0330.08720.06
7.0.20.0330.07020.33
7.0.10.0030.04720.29
7.0.00.0000.08320.09
5.6.280.0100.05721.11
5.6.210.0070.07720.67
5.6.200.0030.04318.25
5.6.190.0030.04720.55
5.6.180.0200.04020.55
5.6.170.0170.04020.58
5.6.160.0000.07320.48
5.6.150.0030.09018.18
5.6.140.0130.08018.18
5.6.130.0070.07318.29
5.6.120.0030.05021.10
5.6.110.0030.07020.98
5.6.100.0070.08720.98
5.6.90.0030.08720.97
5.6.80.0000.05320.39
5.5.350.0070.05320.53
5.5.340.0030.04317.99
5.5.330.0070.05720.25
5.5.320.0500.05320.24
5.5.310.0370.07320.26
5.5.300.0000.07018.04
5.5.290.0070.08718.08
5.5.280.0070.05720.75
5.5.270.0100.07020.76
5.5.260.0100.06320.96
5.5.250.0070.07720.69
5.5.240.0300.06320.23

preferences:
50.95 ms | 401 KiB | 5 Q