3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['foo-test' => [1], '-' => [2], 'bar-test' => [3]]; uksort($a, function($x, $y) { global $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.60.0110.00316.50
8.3.50.0120.00316.27
8.3.40.0110.00418.99
8.3.30.0000.01418.84
8.3.20.0000.00720.17
8.3.10.0040.00421.73
8.3.00.0040.00421.76
8.2.180.0070.00716.50
8.2.170.0070.00722.96
8.2.160.0070.00720.50
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0070.00321.12
8.2.120.0000.00726.35
8.2.110.0060.00319.34
8.2.100.0090.00317.93
8.2.90.0040.00419.15
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0040.00417.93
8.2.50.0000.00818.09
8.2.40.0000.00821.96
8.2.30.0040.00419.57
8.2.20.0000.00817.81
8.2.10.0000.00718.13
8.2.00.0060.00318.02
8.1.270.0070.01122.07
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.52
8.1.230.0000.01117.95
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0040.00418.46
8.1.160.0000.00820.77
8.1.150.0020.00520.79
8.1.140.0080.00019.46
8.1.130.0030.00317.64
8.1.120.0020.00517.40
8.1.110.0030.00517.47
8.1.100.0040.00417.45
8.1.90.0040.00417.50
8.1.80.0060.00317.39
8.1.70.0000.00717.35
8.1.60.0040.00417.54
8.1.50.0060.00317.42
8.1.40.0020.00517.43
8.1.30.0040.00417.73
8.1.20.0040.00417.56
8.1.10.0040.00417.56
8.1.00.0050.00317.50
8.0.300.0000.00918.77
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0050.00217.32
8.0.260.0060.00317.21
8.0.250.0030.00317.00
8.0.240.0040.00416.88
8.0.230.0030.00317.00
8.0.220.0030.00316.97
8.0.210.0000.00716.81
8.0.200.0000.00616.97
8.0.190.0000.00717.00
8.0.180.0070.00016.88
8.0.170.0030.00517.01
8.0.160.0060.00317.00
8.0.150.0040.00416.90
8.0.140.0070.00016.83
8.0.130.0000.00713.31
8.0.120.0040.00416.82
8.0.110.0000.00717.02
8.0.100.0040.00416.84
8.0.90.0040.00416.83
8.0.80.0040.01116.94
8.0.70.0060.00316.89
8.0.60.0040.00417.02
8.0.50.0030.00616.85
8.0.30.0090.00817.06
8.0.20.0080.01217.40
8.0.10.0000.00716.93
8.0.00.0040.01216.72
7.4.330.0000.00516.73
7.4.320.0070.00016.55
7.4.300.0040.00416.53
7.4.290.0000.00716.61
7.4.280.0000.00816.59
7.4.270.0030.00316.36
7.4.260.0000.00716.60
7.4.250.0040.00416.42
7.4.240.0040.00416.49
7.4.230.0000.00716.39
7.4.220.0060.01216.51
7.4.210.0070.00716.63
7.4.200.0000.00716.37
7.4.160.0040.01516.44
7.4.150.0030.01717.40
7.4.140.0080.01517.86
7.4.130.0130.00716.46
7.4.120.0120.00616.56
7.4.110.0100.00716.63
7.4.100.0130.00416.48
7.4.90.0030.01416.48
7.4.80.0150.00419.39
7.4.70.0130.00316.59
7.4.60.0060.00916.45
7.4.50.0080.00816.43
7.4.40.0080.01516.72
7.4.30.0130.00316.55
7.4.00.0120.00714.87
7.3.330.0050.00213.12
7.3.320.0030.00313.14
7.3.310.0060.00316.34
7.3.300.0000.00616.18
7.3.290.0120.00516.27
7.3.280.0060.01016.24
7.3.270.0090.00917.40
7.3.260.0120.00616.63
7.3.250.0060.01016.40
7.3.240.0100.00716.39
7.3.230.0160.00016.40
7.3.210.0120.00516.49
7.3.200.0070.01319.39
7.3.190.0100.00616.34
7.3.180.0090.00916.32
7.3.170.0070.01416.42
7.3.160.0000.01616.32
7.3.120.0050.01314.76
7.3.110.0080.00914.64
7.3.100.0050.01014.77
7.3.90.0080.00814.84
7.3.80.0090.00915.01
7.3.70.0030.01014.79
7.3.60.0060.01014.77
7.3.50.0040.01114.73
7.3.40.0120.00314.84
7.3.30.0070.00614.65
7.3.20.0080.00516.65
7.3.10.0120.00716.30
7.3.00.0110.00516.31
7.2.330.0060.01216.73
7.2.320.0130.01016.76
7.2.310.0060.01216.69
7.2.300.0030.01416.43
7.2.290.0060.00916.84
7.2.250.0080.00815.12
7.2.240.0090.00914.93
7.2.230.0120.00315.29
7.2.220.0080.00715.08
7.2.210.0090.00715.10
7.2.200.0080.00714.91
7.2.190.0030.01214.86
7.2.180.0070.00715.12
7.2.170.0090.00615.05
7.2.160.0110.00315.09
7.2.150.0140.00017.10
7.2.140.0040.01216.86
7.2.130.0070.00816.61
7.2.120.0160.00816.86
7.2.110.0100.00416.59
7.2.100.0110.00916.70
7.2.90.0100.00916.66
7.2.80.0090.01316.94
7.2.70.0100.00716.61
7.2.60.0120.01016.79
7.2.50.0090.00616.52
7.2.40.0100.00716.85
7.2.30.0120.00716.83
7.2.20.0060.01216.54
7.2.10.0080.01016.78
7.2.00.0100.00717.40
7.1.330.0060.00915.73
7.1.320.0040.00915.60
7.1.310.0090.00715.75
7.1.300.0090.00615.81
7.1.290.0030.00915.74
7.1.280.0050.00715.60
7.1.270.0050.00715.76
7.1.260.0060.00715.69
7.1.250.0090.00615.47
7.1.200.0030.01015.63
7.1.100.0030.01017.79
7.1.70.0030.01017.27
7.1.60.0030.02219.40
7.1.50.0040.01617.05
7.1.00.0000.09322.57
7.0.200.0520.00714.84
7.0.60.0170.06721.69
7.0.50.0070.08017.90
7.0.40.0100.08020.23
7.0.30.0500.04020.14
7.0.20.0370.04320.09
7.0.10.0100.06720.06
7.0.00.0070.04020.24
5.6.280.0030.07320.92
5.6.210.0100.04320.61
5.6.200.0070.08318.19
5.6.190.0070.04020.64
5.6.180.0170.04320.67
5.6.170.0170.04020.34
5.6.160.0130.08020.54
5.6.150.0100.08018.16
5.6.140.0070.07318.21
5.6.130.0070.08018.14
5.6.120.0070.04721.05
5.6.110.0130.07020.96
5.6.100.0100.08021.04
5.6.90.0170.07721.00
5.6.80.0000.04320.53
5.5.350.0130.07320.42
5.5.340.0030.04017.96
5.5.330.0070.04320.42
5.5.320.0570.07020.35
5.5.310.0330.07320.27
5.5.300.0070.08717.99
5.5.290.0070.06717.96
5.5.280.0070.06020.77
5.5.270.0070.04320.80
5.5.260.0130.05720.89
5.5.250.0100.07320.71
5.5.240.0200.07020.06

preferences:
65.81 ms | 400 KiB | 5 Q