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) { // 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.00416.88
8.3.50.0140.00621.16
8.3.40.0040.01118.76
8.3.30.0110.00418.75
8.3.20.0040.00420.34
8.3.10.0000.00721.90
8.3.00.0090.00021.91
8.2.180.0120.00916.88
8.2.170.0140.00022.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00321.17
8.2.120.0080.00626.35
8.2.110.0060.00320.94
8.2.100.0040.00818.03
8.2.90.0040.00419.20
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0030.00518.09
8.2.40.0040.00422.30
8.2.30.0020.00519.51
8.2.20.0040.00417.75
8.2.10.0000.00718.19
8.2.00.0040.00418.02
8.1.280.0110.00425.92
8.1.270.0050.00522.06
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0030.00622.61
8.1.230.0100.00017.77
8.1.220.0080.00017.91
8.1.210.0000.00818.77
8.1.200.0040.00417.38
8.1.190.0090.00017.22
8.1.180.0040.00418.10
8.1.170.0080.00018.54
8.1.160.0040.00420.71
8.1.150.0000.00720.84
8.1.140.0000.00819.49
8.1.130.0030.00317.65
8.1.120.0070.00017.43
8.1.110.0040.00417.49
8.1.100.0080.00017.46
8.1.90.0040.00417.43
8.1.80.0050.00517.47
8.1.70.0040.00417.32
8.1.60.0000.00817.56
8.1.50.0040.00417.57
8.1.40.0080.00017.47
8.1.30.0080.00017.66
8.1.20.0050.00217.68
8.1.10.0070.00017.50
8.1.00.0040.00417.56
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0000.00717.17
8.0.260.0040.00417.35
8.0.250.0000.00716.92
8.0.240.0040.00417.06
8.0.230.0000.00717.05
8.0.220.0000.00716.87
8.0.210.0000.00716.96
8.0.200.0000.00616.97
8.0.190.0040.00417.01
8.0.180.0000.00716.82
8.0.170.0000.00817.00
8.0.160.0090.00016.99
8.0.150.0000.00916.91
8.0.140.0040.00416.82
8.0.130.0000.00613.41
8.0.120.0000.00816.84
8.0.110.0000.00716.99
8.0.100.0040.00416.89
8.0.90.0090.00016.88
8.0.80.0110.00416.98
8.0.70.0040.00416.75
8.0.60.0070.00016.75
8.0.50.0040.00416.84
8.0.30.0080.00817.24
8.0.20.0120.00817.40
8.0.10.0040.00416.91
8.0.00.0060.01116.83
7.4.330.0030.00316.89
7.4.320.0040.00416.54
7.4.300.0070.00016.44
7.4.290.0000.01016.51
7.4.280.0080.00016.49
7.4.270.0000.00716.38
7.4.260.0040.00416.39
7.4.250.0030.00516.40
7.4.240.0000.00716.61
7.4.230.0070.00016.59
7.4.220.0110.00716.70
7.4.210.0100.00616.52
7.4.200.0030.00316.58
7.4.160.0070.01016.37
7.4.150.0150.00317.40
7.4.140.0070.01217.86
7.4.130.0160.00216.56
7.4.120.0140.00416.48
7.4.110.0110.00616.40
7.4.100.0140.00916.66
7.4.90.0100.00716.39
7.4.80.0140.00919.39
7.4.70.0090.00616.62
7.4.60.0060.00916.45
7.4.50.0060.00916.46
7.4.40.0060.01516.41
7.4.30.0070.01116.68
7.4.00.0060.00915.00
7.3.330.0040.00413.32
7.3.320.0020.00213.38
7.3.310.0050.00316.30
7.3.300.0060.00016.17
7.3.290.0080.00916.26
7.3.280.0090.00716.30
7.3.270.0060.01217.40
7.3.260.0150.00316.36
7.3.250.0110.00816.42
7.3.240.0120.00816.29
7.3.230.0170.00016.52
7.3.210.0240.01716.25
7.3.200.0080.00819.39
7.3.190.0130.00216.46
7.3.180.0000.01616.11
7.3.170.0080.00816.32
7.3.160.0040.01216.55
7.2.330.0100.01316.57
7.2.320.0040.01916.40
7.2.310.0120.00616.79
7.2.300.0000.01616.80
7.2.290.0100.00616.35
7.2.60.0040.01216.91
7.2.00.0060.00919.14
7.1.200.0000.01415.66
7.1.100.0040.00818.34
7.1.70.0060.00616.79
7.1.60.0000.02519.40
7.1.50.0060.01616.70
7.1.00.0030.07722.57
7.0.200.0680.00314.87
7.0.60.0170.08321.64
7.0.50.0130.07317.79
7.0.40.0000.05720.03
7.0.30.0300.05320.11
7.0.20.0270.07720.06
7.0.10.0070.08720.30
7.0.00.0070.04320.11
5.6.210.0030.07020.75
5.6.200.0070.08018.15
5.6.190.0000.08720.48
5.6.180.0200.04020.33
5.6.170.0130.04320.44
5.6.160.0070.05720.61
5.6.150.0100.08018.19
5.6.140.0100.05318.15
5.6.130.0100.05018.24
5.6.120.0100.08321.00
5.6.110.0100.05721.06
5.6.100.0070.08021.14
5.6.90.0170.08021.10
5.6.80.0030.04020.55
5.5.350.0000.07320.39
5.5.340.0100.05017.96
5.5.330.0100.05720.47
5.5.320.0300.07720.35
5.5.310.0270.07720.34
5.5.300.0070.08018.01
5.5.290.0070.04317.95
5.5.280.0100.03720.68
5.5.270.0170.07320.86
5.5.260.0000.05320.84
5.5.250.0100.07720.58
5.5.240.0130.07720.19

preferences:
53.24 ms | 401 KiB | 5 Q