3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "EU" => [ 0 => "NL", 1 => "BE", 3 => "FR", 4 => "DE", 5 => "ES", 6 => "IT", 7 => "GB", 8 => "TR", 9 => "DK", ], "AS" => ["AB", "AA"] ]; array_walk($arr, fn(&$row) => sort($row)); var_export($arr);

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.5.20.0130.00619.48
8.5.10.0120.00719.96
8.5.00.0100.01019.91
8.4.170.0130.00920.43
8.4.160.0120.01022.05
8.4.150.0020.00114.05
8.4.140.0120.01017.36
8.4.130.0110.00917.51
8.4.120.0110.00620.46
8.4.110.0150.00518.55
8.4.100.0040.01117.53
8.4.90.0140.00620.51
8.4.80.0100.01018.70
8.4.70.0090.00717.54
8.4.60.0080.01317.57
8.4.50.0110.00918.32
8.4.40.0000.02019.45
8.4.30.0180.00320.51
8.4.20.0000.00819.77
8.4.10.0140.00724.14
8.3.290.0120.00820.57
8.3.280.0130.00818.31
8.3.270.0110.00916.48
8.3.260.0090.01016.36
8.3.250.0120.00518.70
8.3.240.0090.01117.21
8.3.230.0110.00716.57
8.3.220.0100.00818.98
8.3.210.0140.00716.66
8.3.200.0080.01116.48
8.3.190.0130.00516.67
8.3.180.0040.00518.32
8.3.170.0170.00019.11
8.3.160.0030.01518.14
8.3.150.0110.00716.80
8.3.140.0070.00717.06
8.3.130.0090.00618.29
8.3.120.0040.01220.72
8.3.110.0030.00518.19
8.3.100.0030.00616.53
8.3.90.0110.00426.77
8.3.80.0060.00316.63
8.3.70.0040.01416.63
8.3.60.0100.00716.38
8.3.50.0070.00718.35
8.3.40.0110.00420.16
8.3.30.0090.00618.71
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.300.0090.01124.01
8.2.290.0090.01016.53
8.2.280.0110.01019.90
8.2.270.0160.00318.83
8.2.260.0070.01118.11
8.2.250.0030.00516.93
8.2.240.0150.00017.19
8.2.230.0030.00520.94
8.2.220.0040.00424.06
8.2.210.0050.00326.77
8.2.200.0000.01116.21
8.2.190.0150.00916.58
8.2.180.0120.00325.92
8.2.170.0220.00018.96
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0040.00722.13
8.2.100.0060.00617.84
8.2.90.0050.00519.09
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0090.00017.93
8.2.50.0030.00618.10
8.2.40.0040.00522.07
8.2.30.0040.00417.96
8.2.20.0000.00720.63
8.2.10.0040.00418.41
8.2.00.0000.00719.18
8.1.340.0110.00823.22
8.1.330.0100.00816.20
8.1.320.0100.01115.88
8.1.310.0040.00418.23
8.1.300.0040.00416.73
8.1.290.0060.00330.84
8.1.280.0170.00025.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00421.31
8.1.230.0040.00717.45
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0030.00717.48
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0050.00318.56
8.1.160.0000.00718.76
8.1.150.0040.00418.50
8.1.140.0030.00617.39
8.1.130.0110.00717.29
8.1.120.0120.00417.50
8.1.110.0150.00317.51
8.1.100.0080.00617.45
8.1.90.0090.00617.49
8.1.80.0030.01317.49
8.1.70.0130.00317.44
8.1.60.0090.00717.54
8.1.50.0110.00717.53
8.1.40.0140.00317.68
8.1.30.0060.00617.51
8.1.20.0080.00317.63
8.1.10.0110.00017.51
8.1.00.0100.00017.46
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0040.00217.18
8.0.260.0040.00716.79
8.0.250.0080.00216.80
8.0.240.0040.00716.72
8.0.230.0050.00516.80
8.0.220.0070.00516.74
8.0.210.0000.01016.57
8.0.200.0000.01416.86
8.0.190.0050.00516.96
8.0.180.0090.00218.59
8.0.170.0000.01318.67
8.0.160.0100.00018.59
8.0.150.0030.00518.45
8.0.140.0060.00318.50
8.0.130.0080.00318.52
8.0.120.0090.00218.60
8.0.110.0110.00018.59
8.0.100.0080.00418.58
8.0.90.0050.00518.55
8.0.80.0040.00818.51
8.0.70.0040.00718.55
8.0.60.0120.00316.86
8.0.50.0130.00316.85
8.0.30.0160.00016.71
8.0.20.0130.00316.86
8.0.10.0160.00016.80

preferences:
127.85 ms | 403 KiB | 5 Q