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("Key '{$x}' not found."); } if (!isset($a[$y])) { throw new Exception("Key '{$y}' not found."); } 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.88
8.3.50.0110.00821.20
8.3.40.0070.00718.97
8.3.30.0110.00418.58
8.3.20.0070.00020.34
8.3.10.0000.00821.73
8.3.00.0090.00021.89
8.2.180.0130.01018.43
8.2.170.0110.00422.96
8.2.160.0100.00320.52
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00021.00
8.2.120.0000.00826.35
8.2.110.0090.00019.24
8.2.100.0080.00417.93
8.2.90.0040.00419.40
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0040.00422.08
8.2.30.0080.00019.61
8.2.20.0040.00417.75
8.2.10.0070.00018.12
8.2.00.0050.00318.18
8.1.280.0100.00325.92
8.1.270.0120.00622.06
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.81
8.1.230.0110.00017.89
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0060.00317.36
8.1.190.0030.00516.98
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00420.75
8.1.150.0040.00419.04
8.1.140.0040.00419.63
8.1.130.0070.00017.62
8.1.120.0000.00717.45
8.1.110.0040.00417.36
8.1.100.0040.00417.48
8.1.90.0040.00417.50
8.1.80.0000.00817.35
8.1.70.0000.00817.38
8.1.60.0060.00317.61
8.1.50.0030.00517.43
8.1.40.0040.00417.54
8.1.30.0040.00417.70
8.1.20.0040.00417.54
8.1.10.0000.00717.59
8.1.00.0070.00017.57
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0000.00717.27
8.0.260.0070.00017.26
8.0.250.0030.00317.02
8.0.240.0000.00916.91
8.0.230.0030.00316.93
8.0.220.0070.00016.84
8.0.210.0000.00816.84
8.0.200.0030.00316.93
8.0.190.0040.00417.06
8.0.180.0040.00417.03
8.0.170.0040.00417.00
8.0.160.0000.01017.02
8.0.150.0070.00016.80
8.0.140.0000.00716.91
8.0.130.0060.00013.31
8.0.120.0030.00516.89
8.0.110.0000.00716.78
8.0.100.0000.00716.82
8.0.90.0020.00516.80
8.0.80.0120.00316.93
8.0.70.0060.00316.95
8.0.60.0040.00417.02
8.0.50.0000.00717.00
8.0.30.0130.00517.04
8.0.20.0090.01017.40
8.0.10.0040.00416.94
8.0.00.0130.00516.67
7.4.330.0030.00316.81
7.4.320.0000.00616.61
7.4.300.0090.00016.55
7.4.290.0030.00516.57
7.4.280.0000.00816.59
7.4.270.0040.00416.59
7.4.260.0030.00316.50
7.4.250.0040.00416.43
7.4.240.0080.00016.40
7.4.230.0000.00716.39
7.4.220.0060.01116.68
7.4.210.0000.01616.46
7.4.200.0000.00816.62
7.4.160.0170.00016.50
7.4.150.0110.00617.40
7.4.140.0090.01317.86
7.4.130.0090.00816.43
7.4.120.0050.01216.64
7.4.110.0100.01016.50
7.4.100.0140.00316.58
7.4.90.0130.00316.43
7.4.80.0160.00619.39
7.4.70.0000.01516.45
7.4.60.0080.00816.46
7.4.50.0000.01416.37
7.4.40.0150.00616.49
7.4.30.0150.00316.33
7.4.10.0040.01515.03
7.4.00.0070.01114.96
7.3.330.0060.00013.30
7.3.320.0020.00213.12
7.3.310.0030.00316.36
7.3.300.0030.00316.25
7.3.290.0080.00916.33
7.3.280.0090.00816.28
7.3.270.0120.00617.40
7.3.260.0090.01016.55
7.3.250.0070.01016.31
7.3.240.0110.00816.33
7.3.230.0040.01316.39
7.3.210.0100.01016.61
7.3.200.0060.00919.39
7.3.190.0130.00316.45
7.3.180.0100.00616.32
7.3.170.0120.00916.30
7.3.160.0070.01016.48
7.3.130.0090.00914.53
7.3.120.0070.00815.03
7.3.110.0050.01214.82
7.3.100.0050.01014.74
7.3.90.0020.01114.72
7.3.80.0090.00714.75
7.3.70.0080.00514.83
7.3.60.0080.00114.77
7.3.50.0070.01214.73
7.3.40.0040.01314.85
7.3.30.0030.00814.85
7.3.20.0050.00816.73
7.3.10.0080.00416.67
7.3.00.0070.00416.52
7.2.330.0180.00016.43
7.2.320.0160.00616.80
7.2.310.0030.01316.52
7.2.300.0030.01316.74
7.2.290.0070.00816.74
7.2.260.0030.01614.71
7.2.250.0030.01615.16
7.2.240.0120.00714.95
7.2.230.0070.00914.88
7.2.220.0090.00915.04
7.2.210.0070.00714.90
7.2.200.0040.01115.21
7.2.190.0060.00815.04
7.2.180.0070.00815.06
7.2.170.0050.01015.06
7.2.160.0080.00315.00
7.2.150.0030.01416.55
7.2.140.0000.01417.11
7.2.130.0080.00317.05
7.2.120.0140.00316.94
7.2.110.0090.00616.96
7.2.100.0120.00616.63
7.2.90.0040.01116.73
7.2.80.0090.00616.68
7.2.70.0040.00716.93
7.2.60.0090.00616.96
7.2.50.0070.01017.01
7.2.40.0070.00716.77
7.2.30.0090.00616.81
7.2.20.0140.00317.01
7.2.10.0040.01216.97
7.2.00.0050.01018.17
7.1.330.0050.01315.76
7.1.320.0060.00815.60
7.1.310.0060.00615.77
7.1.300.0080.01015.58
7.1.290.0090.00615.67
7.1.280.0060.00615.77
7.1.270.0050.01015.71
7.1.260.0070.00915.68
7.1.250.0000.01315.86
7.1.240.0110.00415.47
7.1.230.0040.01115.86
7.1.220.0090.00615.67
7.1.210.0030.00715.50
7.1.200.0080.00315.57
7.1.190.0070.00715.85
7.1.180.0060.01015.55
7.1.170.0090.00315.55
7.1.160.0030.01315.59
7.1.150.0040.01115.95
7.1.140.0060.00615.55
7.1.130.0080.00415.77
7.1.120.0070.00715.62
7.1.110.0000.01215.78
7.1.100.0090.00617.04
7.1.90.0040.01415.88
7.1.80.0130.00015.75
7.1.70.0060.00616.10
7.1.60.0060.01117.65
7.1.50.0050.01416.36
7.1.40.0070.00715.79
7.1.30.0140.00015.84
7.1.20.0030.01115.46
7.1.10.0070.00715.61
7.1.00.0050.04019.04
7.0.330.0070.00415.41
7.0.320.0090.00315.28
7.0.310.0000.01315.45
7.0.300.0030.01015.39
7.0.290.0060.00615.34
7.0.280.0080.00315.30
7.0.270.0070.01015.27
7.0.260.0030.01015.46
7.0.250.0000.00915.34
7.0.240.0000.01515.20
7.0.230.0060.00315.60
7.0.220.0000.01115.54
7.0.210.0070.00715.33
7.0.200.0400.00914.96
7.0.190.0040.01115.28
7.0.180.0090.00615.23
7.0.170.0100.00315.52
7.0.160.0100.00315.16
7.0.150.0110.00315.29
7.0.140.0070.00715.44
7.0.130.0030.00615.38
7.0.120.0000.01315.48
7.0.110.0000.01615.36
7.0.100.0070.02517.57
7.0.90.0040.03117.71
7.0.80.0060.04317.75
7.0.70.0130.02717.59
7.0.60.0020.04517.73
7.0.50.0180.03317.79
7.0.40.0090.04416.81
7.0.30.0050.03116.82
7.0.20.0100.03716.76
7.0.10.0090.03016.85
7.0.00.0030.03216.74
5.6.400.0000.01414.26
5.6.390.0070.00713.91
5.6.380.0000.01413.98
5.6.370.0080.00814.27
5.6.360.0100.00714.43
5.6.350.0040.01114.52
5.6.340.0030.01014.56
5.6.330.0070.00413.79
5.6.320.0090.00914.16
5.6.310.0070.00713.84
5.6.300.0040.00414.16
5.6.290.0000.01114.61
5.6.280.0040.03017.79
5.6.270.0050.00513.98
5.6.260.0090.00614.25
5.6.250.0040.02817.50
5.6.240.0120.03917.48
5.6.230.0170.03617.57
5.6.220.0070.03817.57
5.6.210.0050.04417.42
5.6.200.0070.03017.61
5.6.190.0050.04417.55
5.6.180.0060.04417.73
5.6.170.0070.02717.66
5.6.160.0050.03917.69
5.6.150.0050.03117.48
5.6.140.0080.04717.56
5.6.130.0050.03217.59
5.6.120.0050.04017.64
5.6.110.0070.04717.76
5.6.100.0050.02917.58
5.6.90.0070.02917.76
5.6.80.0050.04317.34
5.6.70.0050.04417.27
5.6.60.0110.04017.16
5.6.50.0100.04217.41
5.6.40.0070.04317.32
5.6.30.0060.02617.36
5.6.20.0060.02717.40
5.6.10.0020.03217.26
5.6.00.0050.03117.28
5.5.380.0050.03517.22
5.5.370.0120.03817.35
5.5.360.0020.04417.27
5.5.350.0050.03017.24
5.5.340.0050.04317.57
5.5.330.0110.03817.34
5.5.320.0080.04217.56
5.5.310.0070.04217.47
5.5.300.0080.04517.55
5.5.290.0080.04317.56
5.5.280.0070.04717.40
5.5.270.0080.03817.39
5.5.260.0070.02817.56
5.5.250.0030.05017.39
5.5.240.0080.04217.15
5.5.230.0100.03817.10
5.5.220.0110.03317.14
5.5.210.0090.03017.07
5.5.200.0040.03917.33
5.5.190.0080.03317.11
5.5.180.0070.03517.20
5.5.170.0100.00313.84
5.5.160.0050.03317.23
5.5.150.0060.04317.10
5.5.140.0070.04117.19
5.5.130.0070.04717.25
5.5.120.0050.04317.25
5.5.110.0130.03217.08
5.5.100.0050.03317.17
5.5.90.0050.03817.26
5.5.80.0090.03516.96
5.5.70.0080.04216.99
5.5.60.0100.03617.10
5.5.50.0020.04017.02
5.5.40.0080.03917.12
5.5.30.0000.04017.03
5.5.20.0110.03917.05
5.5.10.0110.04117.14
5.5.00.0030.04716.98

preferences:
37.28 ms | 401 KiB | 5 Q