3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["one" => 1, "two-two" => 2, "four" => 4], ["two-two" => 22, "three" => 33, "four" => 44] ]; var_export( array_reduce( array_keys(array_merge(...$array)), function($result, $key) { $result[$key] = ucwords(str_replace(['_', '-'], ' ', $key)); return $result; } ) );

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.10.0090.00820.14
8.5.00.0100.01121.86
8.4.150.0020.00014.05
8.4.140.0100.01217.64
8.4.130.0100.00919.52
8.4.120.0090.01125.86
8.4.110.0130.00821.44
8.4.100.0140.00718.84
8.4.90.0080.01218.70
8.4.80.0110.00918.62
8.4.70.0040.00418.11
8.4.60.0130.00718.85
8.4.50.0140.00617.73
8.4.40.0080.00017.65
8.4.30.0070.01318.94
8.4.20.0030.00617.75
8.4.10.0000.00922.21
8.3.280.0130.00718.35
8.3.270.0130.00716.43
8.3.260.0080.00316.40
8.3.250.0080.01118.87
8.3.240.0070.00820.64
8.3.230.0120.00717.23
8.3.220.0130.00618.89
8.3.210.0120.00716.66
8.3.200.0070.00116.58
8.3.190.0030.00517.25
8.3.180.0160.00516.52
8.3.170.0070.01018.86
8.3.160.0100.00018.44
8.3.150.0040.01520.95
8.3.140.0060.00316.59
8.3.130.0060.00316.73
8.3.120.0040.00420.74
8.3.110.0040.00720.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0080.00316.25
8.3.70.0040.01116.58
8.3.60.0070.00718.20
8.3.50.0150.00620.09
8.3.40.0160.00320.47
8.3.30.0130.00318.72
8.3.20.0070.00024.18
8.3.10.0030.00624.66
8.3.00.0000.00726.16
8.2.290.0130.00520.22
8.2.280.0050.00218.25
8.2.270.0070.00718.86
8.2.260.0040.00418.29
8.2.250.0070.00718.65
8.2.240.0000.00917.05
8.2.230.0080.00022.58
8.2.220.0090.00037.54
8.2.210.0030.00526.77
8.2.200.0000.00816.75
8.2.190.0070.01016.58
8.2.180.0090.00625.92
8.2.170.0110.00418.91
8.2.160.0000.01422.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00226.16
8.2.110.0040.00420.86
8.2.100.0000.01218.03
8.2.90.0040.00417.91
8.2.80.0000.00819.17
8.2.70.0050.00517.63
8.2.60.0060.00317.93
8.2.50.0040.00418.05
8.2.40.0040.00417.92
8.2.30.0070.00018.18
8.2.20.0050.00319.26
8.2.10.0000.00718.14
8.2.00.0000.00719.25
8.1.330.0130.00621.85
8.1.320.0110.00816.20
8.1.310.0090.00918.71
8.1.300.0000.00918.56
8.1.290.0030.00630.84
8.1.280.0090.00925.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0110.00419.21
8.1.230.0050.00522.75
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0080.00017.36
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0000.00717.62
8.1.160.0000.00719.06
8.1.150.0040.00418.58
8.1.140.0000.00717.48
8.1.130.0030.00318.77
8.1.120.0000.00717.32
8.1.110.0000.00717.50
8.1.100.0000.00817.34
8.1.90.0150.00217.33
8.1.80.0120.00217.44
8.1.70.0080.00817.45
8.1.60.0140.00417.46
8.1.50.0060.01117.52
8.1.40.0090.00917.49
8.1.30.0140.00217.66
8.1.20.0150.00317.61
8.1.10.0110.00717.40
8.1.00.0160.00317.39
8.0.300.0000.00721.95
8.0.290.0000.00816.58
8.0.280.0080.00018.39
8.0.270.0040.00416.77
8.0.260.0000.00718.39
8.0.250.0040.00316.88
8.0.240.0050.00316.90
8.0.230.0100.00516.88
8.0.220.0050.01116.69
8.0.210.0120.00316.73
8.0.200.0050.01016.93
8.0.190.0120.00416.91
8.0.180.0140.00316.80
8.0.170.0120.00316.82
8.0.160.0120.00216.75
8.0.150.0050.01016.73
8.0.140.0130.00216.69
8.0.130.0130.00316.71
8.0.120.0120.00416.84
8.0.110.0160.00016.84
8.0.100.0060.00916.79
8.0.90.0050.01016.86
8.0.80.0160.00016.86
8.0.70.0120.00416.83
8.0.60.0090.00616.66
8.0.50.0120.00416.81
8.0.30.0120.00416.79
8.0.20.0110.00416.83
8.0.10.0120.00317.01
7.4.330.0030.00315.55
7.4.320.0000.00616.61
7.4.300.0000.00616.50
7.4.290.0140.00416.48
7.4.280.0050.00516.42
7.4.270.0030.00616.29
7.4.260.0000.01016.16
7.4.250.0100.00516.49
7.4.240.0150.00016.54
7.4.230.0160.00016.48
7.4.220.0100.00516.57
7.4.210.0100.00416.48
7.4.200.0090.00616.54
7.4.190.0030.00716.57
7.4.180.0050.00616.49
7.4.160.0070.00716.56
7.4.150.0050.00716.33
7.4.140.0050.00716.25
7.4.130.0090.00416.34
7.4.120.0100.00316.36
7.4.110.0050.00516.39
7.4.100.0070.00416.25
7.4.90.0090.00416.45
7.4.80.0160.00016.22
7.4.70.0120.00316.26
7.4.60.0100.00516.38
7.4.50.0150.00016.32
7.4.40.0080.00516.34
7.4.30.0030.00716.48
7.4.20.0030.01016.34
7.4.10.0130.00016.25
7.4.00.0100.00316.30

preferences:
134.72 ms | 403 KiB | 5 Q