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 ('{$x}') not found."); } else {var_dump($x, $a[$x]);} if (!isset($a[$y])) { throw new Exception("Key Y ('{$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.70.0150.00616.63
8.3.60.0040.01116.50
8.3.50.0070.01121.15
8.3.40.0220.00018.73
8.3.30.0070.00718.83
8.3.20.0040.00420.29
8.3.10.0020.00523.52
8.3.00.0040.00421.72
8.2.180.0090.00917.00
8.2.170.0070.00722.96
8.2.160.0060.00620.38
8.2.150.0030.00524.18
8.2.140.0050.00224.66
8.2.130.0070.00021.18
8.2.120.0040.00426.35
8.2.110.0040.00720.52
8.2.100.0080.00417.97
8.2.90.0000.00819.29
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0050.00317.93
8.2.50.0060.00318.10
8.2.40.0080.00022.18
8.2.30.0040.00419.55
8.2.20.0000.00717.74
8.2.10.0040.00418.04
8.2.00.0050.00318.03
8.1.280.0180.00325.92
8.1.270.0060.00322.01
8.1.260.0050.00328.09
8.1.250.0050.00328.09
8.1.240.0060.00617.40
8.1.230.0100.00317.89
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00918.53
8.1.160.0000.00720.71
8.1.150.0040.00420.84
8.1.140.0030.00519.54
8.1.130.0030.00317.69
8.1.120.0030.00417.47
8.1.110.0040.00417.40
8.1.100.0000.00717.35
8.1.90.0030.00617.54
8.1.80.0070.00317.39
8.1.70.0030.00317.49
8.1.60.0000.00817.60
8.1.50.0000.00917.57
8.1.40.0040.00417.54
8.1.30.0040.00417.59
8.1.20.0040.00417.62
8.1.10.0000.00817.47
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.50
8.0.270.0030.00317.22
8.0.260.0000.00717.25
8.0.250.0060.00016.96
8.0.240.0080.00017.01
8.0.230.0000.00817.02
8.0.220.0030.00316.94
8.0.210.0000.00717.00
8.0.200.0000.00716.91
8.0.190.0040.00417.05
8.0.180.0000.00716.96
8.0.170.0000.00817.03
8.0.160.0000.00916.97
8.0.150.0000.00716.85
8.0.140.0000.00816.89
8.0.130.0030.00313.39
8.0.120.0000.00816.88
8.0.110.0000.00716.78
8.0.100.0070.00016.80
8.0.90.0040.00416.94
8.0.80.0040.01116.94
8.0.70.0040.00416.78
8.0.60.0000.00716.91
8.0.50.0030.00516.94
8.0.30.0120.00917.13
8.0.20.0130.00817.40
8.0.10.0040.00416.95
8.0.00.0100.00816.71
7.4.330.0030.00316.84
7.4.320.0030.00316.47
7.4.300.0040.00416.48
7.4.290.0110.00016.45
7.4.280.0040.00416.59
7.4.270.0070.00016.38
7.4.260.0030.00716.51
7.4.250.0020.00516.57
7.4.240.0040.00416.54
7.4.230.0070.00016.30
7.4.220.0040.01516.58
7.4.210.0060.00916.64
7.4.200.0000.00816.34
7.4.160.0080.00816.57
7.4.150.0140.00717.40
7.4.140.0120.01217.86
7.4.130.0080.00816.50
7.4.120.0100.00816.59
7.4.110.0120.00616.57
7.4.100.0140.00316.48
7.4.90.0080.00816.48
7.4.80.0110.01119.39
7.4.70.0080.00816.70
7.4.60.0090.00616.41
7.4.50.0070.00716.48
7.4.40.0100.00616.58
7.4.30.0090.00916.73
7.4.10.0070.00715.18
7.4.00.0050.01114.88
7.3.330.0030.00413.13
7.3.320.0000.00513.29
7.3.310.0030.00316.27
7.3.300.0060.00016.15
7.3.290.0080.01016.27
7.3.280.0120.00916.25
7.3.270.0130.00317.40
7.3.260.0140.00916.66
7.3.250.0120.00716.29
7.3.240.0090.00916.57
7.3.230.0120.00616.39
7.3.210.0120.00416.20
7.3.200.0050.01119.39
7.3.190.0110.00716.43
7.3.180.0100.00616.32
7.3.170.0070.01416.55
7.3.160.0060.00916.59
7.3.130.0110.00714.55
7.3.120.0080.00815.04
7.3.110.0110.00715.03
7.3.100.0000.01214.71
7.3.90.0100.00314.82
7.3.80.0000.01014.86
7.3.70.0070.01014.54
7.3.60.0030.01214.73
7.3.50.0080.00814.71
7.3.40.0100.00714.62
7.3.30.0090.00614.93
7.3.20.0030.01216.33
7.3.10.0080.00416.68
7.3.00.0070.00716.76
7.2.330.0090.00916.70
7.2.320.0110.01116.47
7.2.310.0090.00616.73
7.2.300.0070.01016.75
7.2.290.0140.00316.70
7.2.260.0090.00615.22
7.2.250.0130.00615.09
7.2.240.0080.00415.11
7.2.230.0030.01215.05
7.2.220.0050.00514.89
7.2.210.0100.00714.78
7.2.200.0070.01014.89
7.2.190.0130.00315.00
7.2.180.0060.01015.24
7.2.170.0070.01015.02
7.2.160.0000.01414.73
7.2.150.0060.00317.15
7.2.140.0100.00316.81
7.2.130.0050.00516.84
7.2.120.0060.00917.07
7.2.110.0030.00616.95
7.2.100.0060.00916.87
7.2.90.0080.00817.00
7.2.80.0000.01516.87
7.2.70.0100.00016.69
7.2.60.0070.00616.69
7.2.50.0070.01117.00
7.2.40.0000.01316.87
7.2.30.0060.00916.98
7.2.20.0080.00416.68
7.2.10.0030.00916.93
7.2.00.0240.01018.13
7.1.330.0040.00815.75
7.1.320.0000.00815.50
7.1.310.0000.01515.93
7.1.300.0030.01215.69
7.1.290.0030.01015.52
7.1.280.0000.01615.63
7.1.270.0000.01015.73
7.1.260.0080.00315.63
7.1.250.0030.00915.87
7.1.240.0070.00315.90
7.1.230.0070.00415.79
7.1.220.0040.00715.98
7.1.210.0030.01415.88
7.1.200.0070.00515.88
7.1.190.0090.00315.80
7.1.180.0030.00915.69
7.1.170.0030.00715.77
7.1.160.0070.01015.58
7.1.150.0030.01115.88
7.1.140.0040.00715.69
7.1.130.0040.00815.83
7.1.120.0030.00915.93
7.1.110.0060.00315.83
7.1.100.0030.00917.05
7.1.90.0030.00615.87
7.1.80.0060.00615.80
7.1.70.0020.00716.44
7.1.60.0100.00917.52
7.1.50.0080.01016.48
7.1.40.0070.00715.67
7.1.30.0040.00415.84
7.1.20.0040.00715.77
7.1.10.0060.00615.69
7.1.00.0070.03719.15
7.0.330.0030.01015.35
7.0.320.0000.01015.46
7.0.310.0100.00715.49
7.0.300.0080.00315.12
7.0.290.0040.00415.56
7.0.280.0030.01315.24
7.0.270.0000.01515.21
7.0.260.0000.01215.42
7.0.250.0060.00315.43
7.0.240.0070.00715.45
7.0.230.0030.01015.42
7.0.220.0030.00615.38
7.0.210.0090.00315.54
7.0.200.0290.00314.93
7.0.190.0000.01115.36
7.0.180.0030.00915.11
7.0.170.0080.00315.42
7.0.160.0080.00015.34
7.0.150.0120.00415.54
7.0.140.0040.00815.40
7.0.130.0060.00915.48
7.0.120.0040.00715.39
7.0.110.0000.01415.27
7.0.100.0000.01415.40
7.0.90.0060.00615.41
7.0.80.0030.00915.26
7.0.70.0080.00315.35
7.0.60.0070.04018.52
7.0.50.0010.02516.61
7.0.40.0070.03216.63
7.0.30.0170.02816.73
7.0.20.0180.04316.80
7.0.10.0070.03016.84
7.0.00.0030.04816.77
5.6.400.0000.01214.52
5.6.390.0090.00614.44
5.6.380.0030.00614.35
5.6.370.0000.01014.43
5.6.360.0090.00314.29
5.6.350.0090.00614.50
5.6.340.0040.00814.46
5.6.330.0070.01114.39
5.6.320.0060.00914.66
5.6.310.0100.00314.32
5.6.300.0060.01014.45
5.6.290.0070.00714.54
5.6.280.0050.03717.69
5.6.270.0030.01014.24
5.6.260.0000.01114.32
5.6.250.0030.01314.29
5.6.240.0040.00414.38
5.6.230.0040.01114.32
5.6.220.0030.01014.04
5.6.210.0060.03317.52
5.6.200.0030.04316.32
5.6.190.0060.04217.57
5.6.180.0170.03017.51
5.6.170.0130.02317.41
5.6.160.0110.01817.50
5.6.150.0030.04516.20
5.6.140.0100.04016.30
5.6.130.0020.02616.34
5.6.120.0070.03217.71
5.6.110.0040.04217.63
5.6.100.0100.04517.65
5.6.90.0080.04317.49
5.6.80.0070.04417.24
5.6.70.0070.00714.29
5.6.60.0070.00314.25
5.6.50.0030.00614.26
5.6.40.0000.01113.93
5.6.30.0030.01314.34
5.6.20.0070.01014.17
5.6.10.0100.00714.42
5.6.00.0060.00614.48
5.5.380.0070.01014.41
5.5.370.0080.00414.18
5.5.360.0030.01014.77
5.5.350.0070.02617.55
5.5.340.0100.03615.99
5.5.330.0030.04517.23
5.5.320.0290.03217.29
5.5.310.0120.03217.47
5.5.300.0030.02516.03
5.5.290.0050.04216.28
5.5.280.0080.04117.58
5.5.270.0020.02917.73
5.5.260.0120.02317.55
5.5.250.0020.04317.50
5.5.240.0070.02517.10
5.5.230.0120.00314.20
5.5.220.0110.00314.36
5.5.210.0000.00814.09
5.5.200.0100.00314.18
5.5.190.0040.01414.21
5.5.180.0040.01114.02
5.5.170.0040.00414.32
5.5.160.0030.00614.25
5.5.150.0090.00314.16
5.5.140.0040.01114.12
5.5.130.0040.00814.25
5.5.120.0000.01314.22
5.5.110.0050.00314.37
5.5.100.0000.01414.31
5.5.90.0110.00314.16
5.5.80.0030.01414.33
5.5.70.0000.01114.41
5.5.60.0000.00914.14
5.5.50.0030.00813.95
5.5.40.0060.00614.19
5.5.30.0080.00413.98
5.5.20.0040.00413.83
5.5.10.0070.00413.68
5.5.00.0070.00713.96

preferences:
51.32 ms | 401 KiB | 5 Q