3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'd' => [ 'f', 'e', ], 'a' => [ 'c', 'j', ], ]; ksort($array); foreach ($array as $key => &$values) { sort($values, SORT_NATURAL); } print_r($array);

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.0070.01016.58
8.3.60.0100.00716.50
8.3.50.0070.00716.49
8.3.40.0030.01020.26
8.3.30.0120.00618.55
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.190.0100.01016.58
8.2.180.0070.00725.92
8.2.170.0070.00718.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00219.97
8.2.110.0200.00321.00
8.2.100.0030.01017.72
8.2.90.0030.00618.16
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0060.00817.55
8.2.50.0050.00318.07
8.2.40.0080.00020.07
8.2.30.0070.00018.08
8.2.20.0040.00418.05
8.2.10.0000.00719.34
8.2.00.0040.00419.21
8.1.280.0080.00825.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0160.00619.13
8.1.230.0090.00320.99
8.1.220.0040.00417.74
8.1.210.0000.00818.96
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0040.00418.81
8.1.150.0040.00418.86
8.1.140.0050.00218.80
8.1.130.0000.00720.18
8.1.120.0030.00317.34
8.1.110.0000.00817.40
8.1.100.0000.00817.41
8.1.90.0040.00417.42
8.1.80.0040.00717.46
8.1.70.0030.00317.45
8.1.60.0000.00817.45
8.1.50.0040.00417.40
8.1.40.0030.00517.46
8.1.30.0070.00417.53
8.1.20.0080.00017.50
8.1.10.0040.00417.54
8.1.00.0040.00417.36
8.0.300.0000.00720.10
8.0.290.0000.00716.88
8.0.280.0070.00018.42
8.0.270.0000.00717.99
8.0.260.0060.00018.48
8.0.250.0000.00716.84
8.0.240.0030.00516.96
8.0.230.0030.00316.92
8.0.220.0020.00516.85
8.0.210.0080.00016.77
8.0.200.0000.00816.92
8.0.190.0000.00716.95
8.0.180.0070.00016.90
8.0.170.0050.00316.79
8.0.160.0000.00916.98
8.0.150.0080.00016.85
8.0.140.0000.00716.77
8.0.130.0050.00013.34
8.0.120.0030.00516.85
8.0.110.0030.00316.78
8.0.100.0000.00716.72
8.0.90.0020.00516.86
8.0.80.0150.00516.88
8.0.70.0030.00516.91
8.0.60.0030.00516.94
8.0.50.0000.00716.76
8.0.30.0100.01016.91
8.0.20.0140.00517.02
8.0.10.0000.00716.90
8.0.00.0180.00616.72
7.4.330.0020.00215.55
7.4.320.0030.00316.54
7.4.300.0040.00416.51
7.4.290.0000.00716.59
7.4.280.0040.00416.55
7.4.270.0040.00416.39
7.4.260.0030.00313.25
7.4.250.0000.00716.54
7.4.240.0040.00416.41
7.4.230.0030.00316.38
7.4.220.0030.00416.44
7.4.210.0050.01016.60
7.4.200.0000.00716.57
7.4.130.0080.01116.44
7.4.120.0060.01316.25
7.4.110.0070.01016.66
7.4.100.0090.01215.95
7.4.90.0070.01316.13
7.4.80.0180.00316.16
7.4.70.0110.00716.54
7.4.60.0160.00016.36
7.4.50.0130.00616.22
7.4.40.0090.00916.36
7.4.30.0150.00916.32
7.4.20.0040.01916.51
7.4.10.0070.01716.27
7.4.00.0100.01016.36
7.3.330.0050.00316.15
7.3.320.0000.00713.15
7.3.310.0000.00716.11
7.3.300.0000.00716.26
7.3.290.0090.00616.25
7.3.280.0160.00316.19
7.3.260.0130.00716.25
7.3.230.0180.00416.48
7.3.220.0170.00316.09
7.3.210.0120.01116.28
7.3.200.0090.01016.33
7.3.190.0100.00716.17
7.3.180.0060.01216.41
7.3.170.0090.00616.35
7.3.160.0070.01016.28
7.3.150.0100.01016.22
7.3.140.0140.00316.38
7.3.130.0130.00316.21
7.3.120.0090.00616.38
7.3.110.0120.00416.24
7.3.100.0160.00616.46
7.3.90.0120.00616.23
7.3.80.0130.00316.44
7.3.70.0170.00016.28
7.3.60.0100.00716.36
7.3.50.0080.00816.26
7.3.40.0060.01016.29
7.3.30.0070.01116.29
7.3.20.0090.00916.36
7.3.10.0080.01516.32
7.3.00.0120.01216.27
7.2.330.0160.00316.27
7.2.320.0050.01416.35
7.2.310.0150.00316.18
7.2.300.0100.01016.42
7.2.290.0100.01316.27
7.2.280.0150.00416.46
7.2.270.0100.00716.43
7.2.260.0170.00916.41
7.2.250.0120.00416.33
7.2.240.0060.01116.43
7.2.230.0130.01016.33
7.2.220.0140.00416.57
7.2.210.0070.01016.31
7.2.200.0100.01016.56
7.2.190.0130.00716.66
7.2.180.0060.01016.42
7.2.170.0000.01616.55
7.2.160.0070.01016.57
7.2.150.0200.00316.44
7.2.140.0200.00716.57
7.2.130.0380.01316.41
7.2.120.0180.00616.50
7.2.110.0110.01416.52
7.2.100.0090.00916.39
7.2.90.0090.00916.45
7.2.80.0090.00916.58
7.2.70.0090.01116.46
7.2.60.0110.00716.52
7.2.50.0070.01016.46
7.2.40.0120.00616.66
7.2.30.0070.01116.55
7.2.20.0070.01016.28
7.2.10.0070.01016.50
7.2.00.0120.00616.37

preferences:
19.65 ms | 401 KiB | 5 Q