3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [1, 2, 3, 4], ['one', 'two', 'three', 'four'] ]; // I want to add this functin to the PHP function combine_array_items ( $arr ) { return array_map(function (...$r) { return $r; }, ...$arr); } print_r( combine_array_items ( $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.00.0110.01019.77
8.4.150.0020.00014.05
8.4.140.0120.01017.63
8.4.130.0050.00817.83
8.4.120.0120.00724.10
8.4.110.0060.00324.23
8.4.100.0140.00617.71
8.4.90.0080.01017.29
8.4.80.0070.00117.77
8.4.70.0130.00817.73
8.4.60.0140.00717.59
8.4.50.0140.00518.70
8.4.40.0100.01019.62
8.4.30.0090.01219.30
8.4.20.0130.01017.66
8.4.10.0030.00619.43
8.3.280.0130.00818.41
8.3.270.0160.00616.58
8.3.260.0100.00616.64
8.3.250.0090.00519.08
8.3.240.0130.00516.82
8.3.230.0030.00616.74
8.3.220.0150.00517.28
8.3.210.0110.00716.74
8.3.200.0110.00816.55
8.3.190.0080.00618.97
8.3.180.0120.00618.72
8.3.170.0060.00918.30
8.3.160.0090.00919.04
8.3.150.0090.00617.19
8.3.140.0150.00016.48
8.3.130.0100.00018.34
8.3.120.0090.00919.12
8.3.110.0120.00320.94
8.3.100.0120.00616.41
8.3.90.0050.00326.77
8.3.80.0050.00519.36
8.3.70.0090.00616.37
8.3.60.0070.01018.40
8.3.50.0100.00617.35
8.3.40.0180.00018.59
8.3.30.0140.00018.79
8.3.20.0030.00320.30
8.3.10.0000.00721.80
8.3.00.0040.00420.75
8.2.290.0110.00920.55
8.2.280.0120.00816.70
8.2.270.0120.00616.61
8.2.260.0040.01416.72
8.2.250.0120.00618.32
8.2.240.0060.00318.58
8.2.230.0060.00322.58
8.2.220.0080.00824.06
8.2.210.0070.00026.77
8.2.200.0060.00318.88
8.2.190.0090.00916.58
8.2.180.0090.00618.53
8.2.170.0110.00422.96
8.2.160.0030.01022.30
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00422.08
8.2.120.0050.00326.35
8.2.110.0090.00020.45
8.2.100.0040.00817.91
8.2.90.0040.00419.04
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0000.00717.80
8.2.50.0040.00418.10
8.2.40.0070.00020.59
8.2.30.0040.00419.23
8.2.20.0040.00418.12
8.2.10.0040.00418.00
8.2.00.0050.00318.22
8.1.330.0110.00716.75
8.1.320.0080.01116.09
8.1.310.0100.00715.96
8.1.300.0040.00420.14
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0030.00523.91
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.64
8.1.230.0000.01117.77
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0040.00418.80
8.1.150.0000.00818.89
8.1.140.0040.00419.57
8.1.130.0000.00718.80
8.1.120.0020.00517.52
8.1.110.0040.00417.46
8.1.100.0000.00717.47
8.1.90.0000.00717.35
8.1.80.0040.00417.50
8.1.70.0000.00717.43
8.1.60.0040.00417.61
8.1.50.0040.00417.47
8.1.40.0000.00817.56
8.1.30.0000.00817.48
8.1.20.0040.00417.63
8.1.10.0000.00817.64
8.1.00.0030.00617.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.30
8.0.270.0000.00717.15
8.0.260.0030.00316.77
8.0.250.0000.00716.79
8.0.240.0030.00316.85
8.0.230.0030.00316.89
8.0.220.0070.00016.76
8.0.210.0070.00016.89
8.0.200.0050.00216.81
8.0.190.0060.00316.84
8.0.180.0040.00416.98
8.0.170.0040.00416.81
8.0.160.0070.00016.91
8.0.150.0040.00416.84
8.0.140.0000.00716.83
8.0.130.0000.00513.31
8.0.120.0040.00416.86
8.0.110.0040.00416.79
8.0.100.0000.00716.88
8.0.90.0000.00716.86
8.0.80.0100.00716.94
8.0.70.0040.00416.93
8.0.60.0000.00816.92
8.0.50.0030.00316.75
8.0.30.0110.00717.13
8.0.20.0140.01117.40
8.0.10.0030.00316.82
8.0.00.0140.01016.78
7.4.330.0060.00015.55
7.4.320.0060.00016.50
7.4.300.0000.00616.59
7.4.290.0030.00616.58
7.4.280.0080.00016.60
7.4.270.0030.00316.51
7.4.260.0060.00013.25
7.4.250.0030.00616.55
7.4.240.0070.00016.65
7.4.230.0030.00316.53
7.4.220.0110.00616.53
7.4.210.0070.00716.47
7.4.200.0000.00716.62
7.4.160.0070.00916.36
7.4.150.0250.00017.40
7.4.140.0130.00717.86
7.4.130.0160.01316.59
7.4.120.0110.00716.43
7.4.110.0100.00716.37
7.4.100.0200.00416.56
7.4.90.0090.00916.58
7.4.80.0140.00319.39
7.4.70.0070.01016.48
7.4.60.0060.01116.60
7.4.50.0030.01016.32
7.4.40.0070.01116.29
7.4.30.0070.01016.63
7.4.00.0060.00614.64
7.3.330.0060.00013.05
7.3.320.0000.00613.07
7.3.310.0000.00716.28
7.3.300.0060.00016.16
7.3.290.0050.00916.22
7.3.280.0080.00916.22
7.3.270.0100.00717.40
7.3.260.0090.00816.41
7.3.250.0190.00216.26
7.3.240.0100.00616.24
7.3.230.0070.01016.34
7.3.210.0100.00616.59
7.3.200.0060.00916.25
7.3.190.0050.01116.41
7.3.180.0030.01316.42
7.3.170.0030.01316.25
7.3.160.0090.01216.39
7.3.10.0110.00316.39
7.3.00.0080.00016.68
7.2.330.0070.01316.36
7.2.320.0140.00316.66
7.2.310.0130.00316.62
7.2.300.0060.01116.64
7.2.290.0170.00716.46
7.2.130.0030.01016.58
7.2.120.0000.01016.84
7.2.110.0120.00416.86
7.2.100.0040.00816.65
7.2.90.0080.00616.96
7.2.80.0030.01016.84
7.2.70.0000.01316.84
7.2.60.0100.00316.81
7.2.50.0050.00716.72
7.2.40.0030.00716.95
7.2.30.0040.00716.54
7.2.20.0030.00916.68
7.2.10.0000.01316.89
7.2.00.0110.00317.02
7.1.250.0030.00615.73
7.1.200.0090.00015.72
7.1.70.0000.01217.16
7.1.60.0270.02033.16
7.1.50.0300.01333.04
7.1.40.0300.02032.70
7.1.30.0370.01732.63
7.1.20.0270.01332.56
7.1.10.0170.01014.64
7.1.00.0270.01014.66
7.0.200.0170.01014.75
7.0.190.0170.01014.76
7.0.180.0230.00314.46
7.0.170.0200.00714.47
7.0.160.0300.00714.59
7.0.150.0230.01314.32
7.0.140.0200.00714.49
7.0.130.0170.01014.80
7.0.120.0230.00714.61
7.0.110.0270.00714.42
7.0.100.0300.00714.38
7.0.90.0270.01014.36
7.0.80.0270.00714.36
7.0.70.0270.01014.43
7.0.60.0230.01014.17
7.0.50.0100.01714.39
7.0.40.0130.01714.63
7.0.30.0170.01314.51
7.0.20.0230.00714.46
7.0.10.0230.01014.62
7.0.00.1070.01014.72

preferences:
36.82 ms | 403 KiB | 5 Q