3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "old" => [ "uk" => "unik", "en" => "eng", "fr" => "fren" ], "new" => [ "uk" => "united kingdom", "en" => "english", "fr" => "french" ] ]; $output = []; $codes = ['uk', 'en', 'fr']; array_walk_recursive($arr, function ($value, $key) use (&$output) { $output[$key][] = $value; }); print_r($output);

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.30.0120.00619.29
8.5.20.0100.00819.27
8.5.10.0080.00916.68
8.5.00.0100.01120.05
8.4.180.0120.00919.66
8.4.170.0100.01220.46
8.4.160.0150.01023.90
8.4.150.0060.00716.88
8.4.140.0120.01017.60
8.4.130.0110.00818.79
8.4.120.0100.01024.10
8.4.110.0030.00518.88
8.4.100.0100.01018.71
8.4.90.0130.00620.58
8.4.80.0080.01118.75
8.4.70.0050.00317.81
8.4.60.0110.00920.42
8.4.50.0100.00519.56
8.4.40.0060.00319.41
8.4.30.0070.01119.40
8.4.20.0040.00717.74
8.4.10.0060.00319.47
8.3.300.0120.00820.76
8.3.290.0090.01220.63
8.3.280.0140.00920.14
8.3.270.0110.01016.46
8.3.260.0120.00416.84
8.3.250.0130.00718.78
8.3.240.0080.00517.03
8.3.230.0080.00216.58
8.3.220.0040.00419.18
8.3.210.0080.00718.67
8.3.200.0070.00216.87
8.3.190.0090.01119.02
8.3.180.0040.01120.86
8.3.170.0140.00319.05
8.3.160.0130.00718.36
8.3.150.0150.00420.84
8.3.140.0040.00418.25
8.3.130.0040.00418.52
8.3.120.0000.00818.78
8.3.110.0080.00820.94
8.3.100.0080.00024.06
8.3.90.0140.00426.77
8.3.80.0000.01018.28
8.3.70.0070.01116.63
8.3.60.0040.01116.75
8.3.50.0240.00916.49
8.3.40.0090.01318.70
8.3.30.0070.00718.88
8.3.20.0140.00320.20
8.3.10.0080.00022.09
8.3.00.0090.00023.68
8.2.300.0080.01222.00
8.2.290.0080.00222.34
8.2.280.0110.00820.60
8.2.270.0150.00418.39
8.2.260.0070.00718.87
8.2.250.0130.00718.49
8.2.240.0090.00017.18
8.2.230.0030.01322.58
8.2.220.0150.00037.54
8.2.210.0070.00026.77
8.2.200.0090.00318.41
8.2.190.0120.00616.63
8.2.180.0070.01018.43
8.2.170.0130.00622.96
8.2.160.0040.01120.43
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0050.00321.11
8.2.110.0050.00520.39
8.2.100.0110.00017.78
8.2.90.0030.00617.75
8.2.80.0050.00318.78
8.2.70.0030.00517.50
8.2.60.0060.00317.93
8.2.50.0090.00018.07
8.2.40.0050.00318.16
8.2.30.0040.00418.12
8.2.20.0040.00418.24
8.2.10.0000.00718.20
8.2.00.0000.00718.07
8.1.340.0110.00821.67
8.1.330.0100.00822.18
8.1.320.0150.00616.19
8.1.310.0050.00316.59
8.1.300.0130.00617.85
8.1.290.0060.00330.84
8.1.280.0180.00425.92
8.1.270.0060.00321.98
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00423.82
8.1.230.0110.00023.96
8.1.220.0050.00517.79
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0040.00417.47
8.1.180.0070.00018.10
8.1.170.0060.00318.61
8.1.160.0000.00718.82
8.1.150.0070.00020.18
8.1.140.0060.00317.43
8.1.130.0030.00319.11
8.1.120.0070.00017.43
8.1.110.0000.00817.46
8.1.100.0040.00417.45
8.1.90.0050.00317.34
8.1.80.0000.00717.52
8.1.70.0000.00817.49
8.1.60.0000.00817.63
8.1.50.0050.00317.48
8.1.40.0050.00217.49
8.1.30.0040.00417.58
8.1.20.0040.00417.68
8.1.10.0070.00417.54
8.1.00.0040.00417.30
8.0.300.0000.00918.77
8.0.290.0080.00016.75
8.0.280.0000.00718.38
8.0.270.0000.00717.25
8.0.260.0070.00018.45
8.0.250.0070.00016.85
8.0.240.0030.00516.93
8.0.230.0030.00316.95
8.0.220.0070.00016.88
8.0.210.0040.00416.87
8.0.200.0000.00816.91
8.0.190.0080.00016.86
8.0.180.0000.00716.98
8.0.170.0000.00716.98
8.0.160.0050.00216.89
8.0.150.0050.00416.83
8.0.140.0000.00716.86
8.0.130.0050.00313.30
8.0.120.0000.00716.75
8.0.110.0040.00416.71
8.0.100.0000.00716.94
8.0.90.0000.00816.94
8.0.80.0080.00816.96
8.0.70.0040.00416.67
8.0.60.0040.00416.87
8.0.50.0000.00716.92
8.0.30.0120.00717.10
8.0.20.0110.00817.40
8.0.10.0050.00216.83
8.0.00.0100.00716.93
7.4.330.0000.00415.55
7.4.320.0000.00616.54
7.4.300.0040.00416.49
7.4.290.0060.00316.25
7.4.280.0000.00916.50
7.4.270.0000.00816.59
7.4.260.0000.00716.49
7.4.250.0000.00816.33
7.4.240.0000.00716.66
7.4.230.0070.00016.43
7.4.220.0100.01016.27
7.4.210.0030.01716.46
7.4.200.0070.00016.35
7.4.160.0100.00716.56
7.4.150.0150.00617.40
7.4.140.0120.00817.86
7.4.130.0070.01916.57
7.4.120.0110.00816.46
7.4.110.0120.01016.59
7.4.100.0030.01416.46
7.4.90.0100.00716.43
7.4.80.0140.00719.39
7.4.70.0120.00616.52
7.4.60.0140.00316.38
7.4.50.0070.01016.16
7.4.40.0030.01316.42
7.4.30.0070.01016.61
7.4.00.0000.01715.00
7.3.330.0000.00513.31
7.3.320.0050.00013.19
7.3.310.0000.00716.25
7.3.300.0030.00416.37
7.3.290.0070.01016.35
7.3.280.0070.00916.35
7.3.270.0090.00817.40
7.3.260.0100.01016.40
7.3.250.0100.00916.49
7.3.240.0110.00616.34
7.3.230.0060.01116.50
7.3.210.0100.00716.41
7.3.200.0180.00616.29
7.3.190.0100.00716.46
7.3.180.0100.00716.22
7.3.170.0100.01316.46
7.3.160.0050.01216.50
7.2.330.0100.00716.40
7.2.320.0100.01416.68
7.2.310.0170.00016.50
7.2.300.0060.01216.32
7.2.290.0000.01616.43
7.2.60.0040.00816.59
7.1.200.0000.01215.69
7.1.100.5550.01016.50
7.1.90.8110.01016.29
7.1.80.6500.01016.23
7.1.70.6770.01015.51
7.1.60.4010.01733.44
7.1.50.4150.01033.16
7.1.40.4960.01332.80
7.1.30.6100.00732.64
7.1.20.5380.01332.59
7.1.10.4610.01314.82
7.1.00.3880.00614.90
7.0.240.5600.01015.93
7.0.230.7070.01015.87
7.0.220.6890.01015.89
7.0.210.4390.01014.68
7.0.200.6260.01314.89
7.0.190.4170.01014.57
7.0.180.5060.01014.59
7.0.170.5870.02014.13
7.0.160.6330.00714.38
7.0.150.5870.01614.18
7.0.140.5230.00714.51
7.0.130.4950.00714.65
7.0.120.5070.00714.64
7.0.110.5060.01014.41
7.0.100.3830.01314.70
7.0.90.3870.00714.59
7.0.80.5280.01314.63
7.0.70.5560.00714.75
7.0.60.4740.00714.51
7.0.50.6050.00014.57
7.0.40.5060.00314.57
7.0.30.5010.01314.43
7.0.20.3880.00614.59
7.0.10.3840.00714.52
7.0.00.4160.00714.53

preferences:
45.71 ms | 1531 KiB | 5 Q