3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1,2,3]; $arr2 = ["A","B","C"]; $arr = [["A"=>$arr1, "B"=>$arr2],["B"=>$arr1, "C"=>$arr2]]; $callback = function($v1, $v2){ return $v1."-".$v2; }; reset($arr[0]); reset($arr[1]); $res = []; while (current($arr[0]) !== false){ $key = key($arr[0])."-".key($arr[1]); $value = array_map($callback, current($arr[0]), current($arr[1])); $res[$key] = $value; next($arr[0]); next($arr[1]); } print_r($res);

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.4.10.0100.01017.70
8.3.140.0040.00418.78
8.3.130.0000.00818.71
8.3.120.0000.00918.91
8.3.110.0110.00720.94
8.3.100.0100.00024.06
8.3.90.0090.00026.77
8.3.80.0030.00619.36
8.3.70.0160.00318.56
8.3.60.0100.01018.38
8.3.50.0250.00622.18
8.3.40.0090.00618.98
8.3.30.0170.00019.10
8.3.20.0000.00820.21
8.3.10.0050.00321.90
8.3.00.0070.00722.53
8.2.260.0080.00016.62
8.2.250.0040.00418.63
8.2.240.0100.00618.76
8.2.230.0000.00822.58
8.2.220.0030.00737.54
8.2.210.0070.00026.77
8.2.200.0030.00618.88
8.2.190.0160.00318.50
8.2.180.0140.00418.41
8.2.170.0100.01019.09
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0050.00519.49
8.2.110.0100.00022.08
8.2.100.0060.00617.84
8.2.90.0000.00819.36
8.2.80.0080.00017.97
8.2.70.0050.00317.75
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0060.00318.16
8.2.30.0030.00618.20
8.2.20.0020.00517.68
8.2.10.0000.00718.01
8.2.00.0030.01217.98
8.1.310.0140.00018.32
8.1.300.0080.00417.68
8.1.290.0090.00030.84
8.1.280.0040.01525.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00019.18
8.1.230.0040.00719.00
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0030.00521.95
8.1.150.0000.00718.78
8.1.140.0040.00417.41
8.1.130.0000.00717.78
8.1.120.0000.00717.50
8.1.110.0080.00017.44
8.1.100.0070.00017.42
8.1.90.0020.00517.45
8.1.80.0070.00017.46
8.1.70.0000.00717.37
8.1.60.0000.00917.60
8.1.50.0060.00317.41
8.1.40.0040.00417.41
8.1.30.0040.00417.65
8.1.20.0050.00217.66
8.1.10.0020.00517.60
8.1.00.0040.00417.57
8.0.300.0000.00918.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00317.33
8.0.260.0000.00617.25
8.0.250.0070.00016.86
8.0.240.0070.00016.98
8.0.230.0040.00416.94
8.0.220.0000.00716.90
8.0.210.0070.00016.81
8.0.200.0040.00416.83
8.0.190.0040.00416.92
8.0.180.0030.00316.81
8.0.170.0040.00416.92
8.0.160.0000.00716.71
8.0.150.0000.00716.84
8.0.140.0040.00416.85
8.0.130.0030.00313.32
8.0.120.0040.00416.86
8.0.110.0040.00416.87
8.0.100.0040.00416.77
8.0.90.0000.00716.77
8.0.80.0100.00416.91
8.0.70.0040.00416.90
8.0.60.0040.00416.94
8.0.50.0050.00316.79
8.0.30.0050.01317.21
8.0.20.0130.00917.40
8.0.10.0000.00717.07
8.0.00.0090.01016.78
7.4.330.0060.00015.05
7.4.320.0030.00316.54
7.4.300.0060.00016.63
7.4.290.0000.00716.46
7.4.280.0000.00716.52
7.4.270.0040.00416.62
7.4.260.0030.00516.47
7.4.250.0000.00716.43
7.4.240.0030.00316.45
7.4.230.0000.00716.72
7.4.220.0110.01016.44
7.4.210.0040.01116.52
7.4.200.0070.00016.61
7.4.160.0060.01316.55
7.4.150.0130.00317.40
7.4.140.0150.01317.86
7.4.130.0080.00916.48
7.4.120.0090.00816.38
7.4.110.0030.01316.59
7.4.100.0040.01716.44
7.4.90.0130.00316.42
7.4.80.0040.01319.39
7.4.70.0100.00716.57
7.4.60.0070.01016.45
7.4.50.0040.00416.57
7.4.40.0120.00316.50
7.4.30.0100.01116.56
7.4.00.0060.01114.96
7.3.330.0020.00213.38
7.3.320.0050.00013.21
7.3.310.0000.00716.41
7.3.300.0030.00316.36
7.3.290.0060.01116.35
7.3.280.0040.01416.37
7.3.270.0130.00317.40
7.3.260.0070.01016.61
7.3.250.0090.01016.50
7.3.240.0070.01016.64
7.3.230.0110.00616.45
7.3.210.0160.00016.49
7.3.200.0160.00919.39
7.3.190.0000.02216.27
7.3.180.0080.00816.43
7.3.170.0080.00816.55
7.3.160.0030.01316.29
7.3.10.0080.00316.73
7.3.00.0030.01016.46
7.2.330.0080.01116.69
7.2.320.0070.01016.59
7.2.310.0000.01616.83
7.2.300.0100.00616.70
7.2.290.0090.00816.57
7.2.130.0040.01117.09
7.2.120.0090.00617.01
7.2.110.0030.00816.67
7.2.100.0060.00317.12
7.2.90.0040.00816.89
7.2.80.0080.00316.61
7.2.70.0030.01216.91
7.2.60.0070.00716.83
7.2.50.0030.00617.00
7.2.40.0040.01116.70
7.2.30.0040.00717.04
7.2.20.0000.01017.05
7.2.10.0100.00316.86
7.2.00.0060.00617.99
7.1.250.0030.00915.78
7.1.200.0060.00315.83
7.1.100.0000.01117.82
7.1.70.0000.00817.01
7.1.60.0100.01619.59
7.1.50.0120.01216.62
7.1.00.0030.07722.29
7.0.200.0040.00416.89
7.0.60.0070.08719.96
7.0.50.0030.07717.89
7.0.40.0070.06020.24
7.0.30.0270.03320.25
7.0.20.0230.05320.25
7.0.10.0330.07720.07
7.0.00.0030.04720.07
5.6.280.0000.04321.12
5.6.210.0170.06720.71
5.6.200.0030.08018.25
5.6.190.0030.06720.67
5.6.180.3570.04320.39
5.6.170.0300.07320.52
5.6.160.0170.07320.61
5.6.150.0100.07018.18
5.6.140.0130.07718.11
5.6.130.0000.05718.21
5.6.120.0100.03721.01
5.6.110.0130.08321.14
5.6.100.0070.08721.11
5.6.90.0170.07721.12
5.6.80.0100.06720.36
5.6.70.0370.06720.50
5.5.350.0230.06020.41
5.5.340.0030.08318.04
5.5.330.0100.06020.25
5.5.320.0400.05020.34
5.5.310.0300.05720.35
5.5.300.0070.07718.04
5.5.290.0200.07318.03
5.5.280.0000.04320.87
5.5.270.0070.03720.73
5.5.260.0130.08020.89
5.5.250.0200.07020.78
5.5.240.0170.08020.04
5.4.450.0800.08319.42
5.4.440.0670.06019.58
5.4.430.0830.07319.28
5.4.420.0900.05719.54
5.4.410.0700.07019.42
5.4.400.0770.05019.19
5.4.390.0770.05319.24
5.4.380.0630.05318.99
5.4.370.0730.05019.09
5.4.360.0800.04718.99
5.4.350.0700.06719.22
5.4.340.0800.05718.91
5.4.320.0670.05719.20
5.4.310.0500.06019.15
5.4.300.0700.05319.34
5.4.290.0700.05019.29
5.4.280.0600.05719.09
5.4.270.0700.05719.12
5.4.260.0730.04719.00
5.4.250.0730.06019.30
5.4.240.0600.05319.31
5.4.230.0670.05318.89
5.4.220.0730.05319.21
5.4.210.0700.05319.23
5.4.200.0530.05317.02
5.4.190.0600.04719.04
5.4.180.0870.04719.28
5.4.170.0830.05019.12
5.4.160.0530.07019.13
5.4.150.0730.05019.01
5.4.140.0630.05016.45
5.4.130.0500.05316.48
5.4.120.0730.04316.63
5.4.110.0530.05716.58
5.4.100.0700.05716.25
5.4.90.0570.06016.28
5.4.80.0800.05716.39
5.4.70.0630.05316.50
5.4.60.0700.04716.56
5.4.50.0870.04316.60
5.4.40.0530.05316.64
5.4.30.0800.05016.44
5.4.20.0630.05716.45
5.4.10.0700.05316.50
5.4.00.0930.04315.95
5.3.290.0700.06014.65
5.3.280.0900.05314.61
5.3.270.0630.05314.40
5.3.260.0770.05714.43
5.3.250.0830.05014.63
5.3.240.0800.05714.62
5.3.230.0730.05014.47
5.3.220.0700.06014.39
5.3.210.0730.05314.57
5.3.200.0670.05314.32
5.3.190.0630.05014.48
5.3.180.0670.05314.49
5.3.170.0700.05714.35
5.3.160.0730.05314.41
5.3.150.0770.04714.55
5.3.140.0770.05314.56
5.3.130.0470.06014.42
5.3.120.0670.05314.48
5.3.110.0700.05714.55
5.3.100.0730.04314.02
5.3.90.0630.05313.87
5.3.80.0470.05313.84
5.3.70.0600.04314.03
5.3.60.0670.05013.89
5.3.50.0570.05713.95
5.3.40.0630.05313.92
5.3.30.0670.05013.92
5.3.20.0800.03713.62
5.3.10.0830.03013.64
5.3.00.0670.05013.47
5.2.170.0470.05011.19
5.2.160.0530.04011.06
5.2.150.0670.03711.21
5.2.140.0500.04311.00
5.2.130.0500.04310.94
5.2.120.0530.04011.15
5.2.110.0470.05311.00
5.2.100.0570.03711.20
5.2.90.0570.03710.95
5.2.80.0530.04310.98
5.2.70.0570.04010.98
5.2.60.0530.04310.98
5.2.50.0470.04011.02
5.2.40.0400.04010.82
5.2.30.0370.04310.97
5.2.20.0300.04310.88
5.2.10.0400.03310.76
5.2.00.0400.04310.69
5.1.60.0400.0409.97
5.1.50.0370.04010.08
5.1.40.0430.0339.89
5.1.30.0430.03310.32
5.1.20.0330.04010.30
5.1.10.0270.04310.06
5.1.00.0430.0409.98
5.0.50.0230.0338.54
5.0.40.0270.0308.31
5.0.30.0230.0408.25
5.0.20.0230.0278.04
5.0.10.0270.0238.16
5.0.00.0170.0438.07
4.4.90.0200.0237.09
4.4.80.0200.0207.09
4.4.70.0170.0207.09
4.4.60.0170.0237.09
4.4.50.0130.0237.09
4.4.40.0300.0207.09
4.4.30.0170.0207.09
4.4.20.0170.0207.09
4.4.10.0270.0277.09
4.4.00.0170.0337.09
4.3.110.0270.0177.09
4.3.100.0200.0237.09
4.3.90.0230.0207.09
4.3.80.0200.0337.09
4.3.70.0170.0237.09
4.3.60.0170.0207.09
4.3.50.0170.0237.09
4.3.40.0130.0377.09
4.3.30.0100.0207.09
4.3.20.0070.0237.09
4.3.10.0070.0237.09
4.3.00.0070.0237.13

preferences:
29.6 ms | 403 KiB | 5 Q