3v4l.org

run code in 300+ PHP versions simultaneously
<?php $basket = [ 'Items' => [ [ 'a' => 'b', 'b' => 'c', 'd' => 'e' ], [ 'a' => 'b', 'd' => 'e', 'b' => 'c' ], [ 'd' => 'e', 'a' => 'b', 'b' => 'c' ] ], ]; if (isset($basket['items']) && is_array($basket['items'])) { array_walk($basket['items'], 'ksort'); }

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.0110.00418.38
8.3.60.0180.00416.63
8.3.50.0120.00717.24
8.3.40.0040.01118.77
8.3.30.0040.01118.63
8.3.20.0070.00320.37
8.3.10.0050.00221.69
8.3.00.0080.00019.13
8.2.190.0130.00616.75
8.2.180.0140.00718.28
8.2.170.0000.01422.96
8.2.160.0110.00720.38
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00421.11
8.2.120.0040.00426.35
8.2.110.0000.01121.03
8.2.100.0060.00618.21
8.2.90.0040.00419.40
8.2.80.0030.00517.97
8.2.70.0090.00017.63
8.2.60.0040.00417.92
8.2.50.0050.00318.10
8.2.40.0000.00820.46
8.2.30.0000.00721.12
8.2.20.0080.00018.18
8.2.10.0040.00418.01
8.2.00.0040.00417.92
8.1.280.0140.00325.92
8.1.270.0070.00022.19
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00324.01
8.1.230.0070.00418.88
8.1.220.0030.00517.79
8.1.210.0060.00318.77
8.1.200.0000.01017.35
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0000.00820.25
8.1.160.0000.00718.94
8.1.150.0000.00718.92
8.1.140.0070.00019.51
8.1.130.0070.00018.92
8.1.120.0070.00017.34
8.1.110.0000.00717.44
8.1.100.0050.00317.46
8.1.90.0000.00817.43
8.1.80.0040.00417.38
8.1.70.0030.00317.38
8.1.60.0000.00817.45
8.1.50.0050.00317.53
8.1.40.0040.00417.52
8.1.30.0000.00817.64
8.1.20.0000.00717.51
8.1.10.0060.00617.50
8.1.00.0000.00717.33
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.50
8.0.270.0030.00317.12
8.0.260.0060.00016.72
8.0.250.0030.00317.01
8.0.240.0070.00016.96
8.0.230.0060.00316.96
8.0.220.0030.00316.88
8.0.210.0000.00716.75
8.0.200.0030.00316.96
8.0.190.0050.00416.93
8.0.180.0040.00416.94
8.0.170.0080.00016.80
8.0.160.0000.00716.87
8.0.150.0040.00416.82
8.0.140.0020.00516.80
8.0.130.0050.00013.33
8.0.120.0040.00416.70
8.0.110.0000.00816.83
8.0.100.0070.00016.75
8.0.90.0040.00416.73
8.0.80.0100.00716.91
8.0.70.0050.00216.83
8.0.60.0000.00716.88
8.0.50.0050.00216.88
8.0.30.0030.01517.06
8.0.20.0100.01217.40
8.0.10.0000.00717.00
8.0.00.0130.00316.71
7.4.330.0060.00015.55
7.4.320.0030.00316.48
7.4.300.0000.00716.49
7.4.290.0070.00316.48
7.4.280.0070.00016.47
7.4.270.0040.00416.64
7.4.260.0030.00316.57
7.4.250.0030.00316.52
7.4.240.0000.00716.53
7.4.230.0000.00716.50
7.4.220.0250.00616.55
7.4.210.0060.00716.47
7.4.200.0040.00416.69
7.4.160.0090.00916.38
7.4.150.0180.00017.40
7.4.140.0100.01017.86
7.4.130.0120.00616.46
7.4.120.0060.01216.41
7.4.110.0130.00316.36
7.4.100.0120.00616.49
7.4.90.0180.00016.48
7.4.80.0100.00819.39
7.4.70.0160.00016.42
7.4.60.0100.00616.32
7.4.50.0110.00216.52
7.4.40.0060.00916.20
7.4.30.0000.01616.43
7.4.10.0140.00314.68
7.4.00.0070.00914.96
7.3.330.0060.00012.94
7.3.320.0050.00013.07
7.3.310.0000.00616.07
7.3.300.0000.00716.21
7.3.290.0060.01016.17
7.3.280.0090.00816.22
7.3.270.0280.02017.40
7.3.260.0110.00616.29
7.3.250.0130.00816.31
7.3.240.0120.00816.31
7.3.230.0120.00616.44
7.3.210.0130.00316.30
7.3.200.0160.00716.25
7.3.190.0040.01216.29
7.3.180.0090.00616.43
7.3.170.0110.00616.54
7.3.160.0070.01016.36
7.3.130.0060.00914.92
7.3.120.0030.01314.45
7.3.110.0070.01014.84
7.3.100.0100.00514.65
7.3.90.0070.01014.70
7.3.80.0030.01014.69
7.3.70.0040.00914.64
7.3.60.0050.00914.77
7.3.50.0030.00914.80
7.3.40.0050.01114.57
7.3.30.0050.00814.76
7.3.20.0100.00516.63
7.3.10.0090.00716.45
7.3.00.0120.00416.22
7.2.330.0110.00916.56
7.2.320.0090.00816.57
7.2.310.0100.00616.53
7.2.300.0130.00616.20
7.2.290.0060.01016.55
7.2.260.0070.01414.88
7.2.250.0050.01114.88
7.2.240.0080.00814.85
7.2.230.0070.00614.85
7.2.220.0030.01214.99
7.2.210.0050.00714.72
7.2.200.0060.00914.91
7.2.190.0040.01414.93
7.2.180.0030.01014.81
7.2.170.0070.00914.91
7.2.160.0080.00414.83
7.2.150.0030.01416.58
7.2.140.0040.00716.75
7.2.130.0060.00916.21
7.2.120.0100.00516.39
7.2.110.0080.00416.44
7.2.100.0030.01016.51
7.2.90.0060.00916.80
7.2.80.0090.00916.76
7.2.70.0130.00916.42
7.2.60.0130.00716.76
7.2.50.0190.00916.46
7.2.40.0140.00616.51
7.2.30.0140.00716.58
7.2.20.0080.00816.65
7.2.10.0090.01016.63
7.2.00.0110.00717.48
7.1.330.0050.00815.75
7.1.320.0060.00815.73
7.1.310.0030.01315.77
7.1.300.0030.01015.77
7.1.290.0040.00915.50
7.1.280.0050.00815.78
7.1.270.0080.00415.64
7.1.260.0070.00715.79
7.1.250.0080.00815.25
7.1.240.0060.00615.64
7.1.230.0100.00315.57
7.1.220.0000.01515.80
7.1.210.0000.00815.60
7.1.200.0090.00415.52
7.1.190.0030.01415.67
7.1.180.0030.00715.63
7.1.170.0040.00815.42
7.1.160.0070.00715.40
7.1.150.0070.01015.66
7.1.140.0030.00815.62
7.1.130.0060.00615.62
7.1.120.0030.01315.73
7.1.110.0000.01515.63
7.1.100.0040.01116.88
7.1.90.0030.01215.46
7.1.80.0060.00615.64
7.1.70.0100.00816.41
7.1.60.0190.00725.19
7.1.50.0090.01225.09
7.1.40.0070.01724.96
7.1.30.0100.01325.06
7.1.20.0240.01024.06
7.1.10.0090.00815.13
7.1.00.0190.00815.10
7.0.330.0030.01215.24
7.0.320.0000.01015.23
7.0.310.0060.00614.95
7.0.300.0030.00914.93
7.0.290.0030.00615.00
7.0.280.0000.01515.37
7.0.270.0030.01015.12
7.0.260.0110.00315.23
7.0.250.0040.00815.43
7.0.240.0000.01115.33
7.0.230.0100.00315.26
7.0.220.0060.00814.95
7.0.210.0030.01015.44
7.0.200.0050.00815.92
7.0.190.0120.00514.93
7.0.180.0060.00815.71
7.0.170.0050.00715.56
7.0.160.0060.01115.71
7.0.150.0050.00815.64
7.0.140.0140.01015.64
7.0.130.0110.01115.85
7.0.120.0050.01015.78
7.0.110.0040.00715.74
7.0.100.0060.00815.64
7.0.90.0070.01214.83
7.0.80.0070.00615.71
7.0.70.0060.00815.59
7.0.60.0100.00614.64
7.0.50.0040.00815.80
7.0.40.0140.00513.91
7.0.30.0120.00713.99
7.0.20.0090.00614.11
7.0.10.0000.01415.00
7.0.00.0120.00713.96
5.6.400.0060.00614.41
5.6.390.0060.00714.49
5.6.380.0000.01214.42
5.6.370.0070.00314.45
5.6.360.0070.00314.55
5.6.350.0100.00314.61
5.6.340.0040.00714.39
5.6.330.0040.01114.13
5.6.320.0120.00614.27
5.6.310.0090.00013.78
5.6.300.0090.00614.44
5.6.290.0060.00914.04
5.6.280.0090.00614.39
5.6.270.0070.00714.38
5.6.260.0040.00814.29
5.6.250.0000.01514.06
5.6.240.0030.00714.25
5.6.230.0000.01514.15
5.6.220.0000.01314.27
5.6.210.0000.01714.17
5.6.200.0060.00914.15
5.6.190.0080.00814.19
5.6.180.0080.00814.04
5.6.170.0100.00314.53
5.6.160.0100.00314.16
5.6.150.0040.01114.24
5.6.140.0030.01314.38
5.6.130.0120.00314.45
5.6.120.0070.00714.06
5.6.110.0140.00014.37
5.6.100.0000.01814.51
5.6.90.0070.01014.57
5.6.80.0070.01014.27
5.6.70.0030.01014.23
5.6.60.0060.00614.16
5.6.50.0040.00714.13
5.6.40.0090.00014.21
5.6.30.0060.00814.00
5.6.20.0000.01414.05
5.6.10.0050.00514.09
5.6.00.0030.01314.14

preferences:
34.31 ms | 401 KiB | 5 Q