3v4l.org

run code in 300+ PHP versions simultaneously
<?php $basket = [ 'Items' => [ [ 'd' => 'e', 'b' => 'c', 'a' => 'b' ], [ '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'); } var_dump($basket);

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.00718.11
8.3.50.0110.01416.59
8.3.40.0150.00018.84
8.3.30.0070.00718.68
8.3.20.0040.00420.21
8.3.10.0080.00021.73
8.3.00.0060.00319.26
8.2.180.0110.00718.43
8.2.170.0070.00722.96
8.2.160.0080.00620.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.77
8.2.120.0040.00426.35
8.2.110.0060.00321.18
8.2.100.0040.00818.16
8.2.90.0040.00419.35
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00917.93
8.2.50.0030.00618.10
8.2.40.0040.00420.60
8.2.30.0040.00420.97
8.2.20.0000.00718.11
8.2.10.0040.00418.16
8.2.00.0040.00417.93
8.1.280.0160.00325.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.14
8.1.230.0000.01119.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0000.00818.50
8.1.160.0040.00419.00
8.1.150.0040.00418.86
8.1.140.0040.00419.47
8.1.130.0070.00018.85
8.1.120.0000.00817.37
8.1.110.0040.00417.34
8.1.100.0080.00017.47
8.1.90.0020.00517.47
8.1.80.0000.00717.48
8.1.70.0030.00317.45
8.1.60.0080.00017.59
8.1.50.0030.00517.48
8.1.40.0040.00417.50
8.1.30.0000.00817.62
8.1.20.0040.00417.53
8.1.10.0060.00617.40
8.1.00.0040.00417.48
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0070.00018.49
8.0.270.0030.00317.20
8.0.260.0080.00016.71
8.0.250.0000.00816.96
8.0.240.0000.00816.86
8.0.230.0030.00316.82
8.0.220.0000.00716.87
8.0.210.0030.00316.79
8.0.200.0050.00216.92
8.0.190.0030.00516.96
8.0.180.0040.00416.91
8.0.170.0000.00716.95
8.0.160.0040.00416.82
8.0.150.0040.00416.78
8.0.140.0050.00216.74
8.0.130.0060.00013.29
8.0.120.0040.00416.87
8.0.110.0030.00516.88
8.0.100.0040.00416.78
8.0.90.0000.00716.95
8.0.80.0100.01016.94
8.0.70.0000.00716.83
8.0.60.0000.00816.83
8.0.50.0000.00716.70
8.0.30.0080.01017.21
8.0.20.0140.00617.40
8.0.10.0030.00516.84
8.0.00.0070.01016.64
7.4.330.0000.00515.55
7.4.320.0060.00016.62
7.4.300.0030.00316.50
7.4.290.0050.00616.50
7.4.280.0050.00316.40
7.4.270.0030.00316.52
7.4.260.0000.00616.40
7.4.250.0060.00316.50
7.4.240.0000.00816.49
7.4.230.0070.00016.68
7.4.220.0070.01816.55
7.4.210.0100.00316.41
7.4.200.0070.00016.68
7.4.160.0050.01116.54
7.4.150.0180.00317.40
7.4.140.0100.01017.86
7.4.130.0070.01716.42
7.4.120.0100.01116.47
7.4.110.0090.00916.38
7.4.100.0090.01116.37
7.4.90.0120.01216.28
7.4.80.0070.01119.39
7.4.70.0100.00716.66
7.4.60.0130.00316.43
7.4.50.0000.01616.21
7.4.40.0030.01316.19
7.4.30.0070.01016.50
7.4.00.0070.00914.88
7.3.330.0000.00513.03
7.3.320.0060.00013.11
7.3.310.0030.00316.24
7.3.300.0060.00016.21
7.3.290.0070.00916.18
7.3.280.0090.00916.22
7.3.270.0080.01217.40
7.3.260.0100.01016.22
7.3.250.0060.01216.37
7.3.240.0090.00916.24
7.3.230.0040.01516.50
7.3.210.0120.00616.15
7.3.200.0060.01216.06
7.3.190.0190.00016.36
7.3.180.0120.00916.26
7.3.170.0080.00816.25
7.3.160.0130.00316.19
7.3.120.0080.00814.92
7.3.110.0070.01114.85
7.3.100.0000.01514.86
7.3.90.0080.00414.95
7.3.80.0040.01114.64
7.3.70.0060.01214.83
7.3.60.0040.00814.40
7.3.50.0060.00314.61
7.3.40.0000.01214.57
7.3.30.0030.01214.62
7.3.20.0000.01516.59
7.3.10.0050.00916.63
7.3.00.0090.00616.62
7.2.330.0040.01416.61
7.2.320.0030.01316.29
7.2.310.0130.00416.48
7.2.300.0130.01016.63
7.2.290.0100.00716.33
7.2.250.0130.00715.14
7.2.240.0070.01114.84
7.2.230.0070.01014.61
7.2.220.0000.01314.88
7.2.210.0080.00414.86
7.2.200.0040.01414.79
7.2.190.0000.01314.79
7.2.180.0000.01115.03
7.2.170.0040.01115.04
7.2.130.0060.00916.86
7.2.120.0120.00316.34
7.2.110.0070.00616.45
7.2.100.0040.01116.59
7.2.90.0050.00916.40
7.2.80.0110.00316.47
7.2.70.0060.00616.56
7.2.60.0030.00916.66
7.2.50.0020.01116.82
7.2.40.0030.01116.49
7.2.30.0060.01016.54
7.2.20.0120.00416.52
7.2.10.0090.00716.61
7.2.00.0050.00917.55
7.1.330.0100.00715.66
7.1.320.0070.00715.56
7.1.310.0100.00315.70
7.1.300.0140.00015.56
7.1.290.0040.00415.73
7.1.280.0040.00415.80
7.1.270.0030.01015.68
7.1.260.0080.00815.43
7.1.250.0040.00715.52
7.1.230.0000.01215.82
7.1.220.0000.01415.62
7.1.210.0090.00615.83
7.1.200.0050.01015.41
7.1.190.0040.00815.53
7.1.180.0120.00315.87
7.1.170.0000.01115.84
7.1.160.0070.00715.57
7.1.150.0060.01015.47
7.1.140.0150.00415.22
7.1.130.0070.01115.47
7.1.120.0040.01715.66
7.1.110.0040.01415.79
7.1.100.0070.00516.91
7.1.90.0070.01015.70
7.1.80.0040.01115.52
7.1.70.0070.00916.20
7.1.60.0090.01625.47
7.1.50.0170.00825.21
7.1.40.0160.00724.96
7.1.30.0150.00525.02
7.1.20.0090.01525.18
7.1.10.0090.00516.08
7.1.00.0060.00816.06
7.0.310.0040.00415.24
7.0.300.0030.01015.34
7.0.290.0000.01115.39
7.0.280.0130.00515.12
7.0.270.0040.01215.02
7.0.260.0030.01415.18
7.0.250.0120.00015.48
7.0.240.0030.01015.22
7.0.230.0090.00314.92
7.0.220.0100.00314.95
7.0.210.0120.00314.96
7.0.200.0030.01216.06
7.0.190.0060.00815.79
7.0.180.0090.00315.77
7.0.170.0100.00715.90
7.0.160.0080.00615.56
7.0.150.0020.01015.70
7.0.140.0070.00315.78
7.0.130.0070.00815.88
7.0.120.0050.00815.80
7.0.110.0050.00715.83
7.0.100.0030.00815.79
7.0.90.0050.00715.62
7.0.80.0050.01015.72
7.0.70.0090.00515.56
7.0.60.0050.00915.61
7.0.50.0060.00815.71
7.0.40.0120.00314.49
7.0.30.0060.00814.75
7.0.20.0030.00914.96
7.0.10.0050.00814.76
7.0.00.0070.00314.68
5.6.380.0070.00714.23

preferences:
37.73 ms | 401 KiB | 5 Q