3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('A', 'B', 'C'); $array2 = array('1', '2', '3','4','5', '6', '7','8'); $result = array(); foreach($array1 as $val) { foreach($array2 as $co) { $result[] = $val."".$co; } } print_r($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.3.60.0100.01018.40
8.3.50.0130.00322.05
8.3.40.0120.00918.83
8.3.30.0080.00519.04
8.3.20.0040.00420.25
8.3.10.0000.00721.91
8.3.00.0050.00319.78
8.2.180.0150.00016.63
8.2.170.0090.00622.96
8.2.160.0070.00720.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.02
8.2.110.0070.00320.81
8.2.100.0080.00417.93
8.2.90.0050.00319.22
8.2.80.0000.00917.97
8.2.70.0000.00817.75
8.2.60.0050.00317.90
8.2.50.0000.00818.10
8.2.40.0040.00422.36
8.2.30.0000.00818.43
8.2.20.0040.00417.63
8.2.10.0050.00318.11
8.2.00.0050.00317.75
8.1.280.0130.00325.92
8.1.270.0060.00323.91
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.33
8.1.230.0040.00717.83
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00817.36
8.1.190.0080.00017.11
8.1.180.0080.00018.10
8.1.170.0030.00618.46
8.1.160.0000.00822.00
8.1.150.0050.00218.92
8.1.140.0040.00417.45
8.1.130.0000.00717.77
8.1.120.0050.00317.33
8.1.110.0000.00817.45
8.1.100.0030.00617.52
8.1.90.0030.00317.46
8.1.80.0050.00317.52
8.1.70.0070.00017.37
8.1.60.0060.00317.57
8.1.50.0000.00817.42
8.1.40.0040.00417.36
8.1.30.0040.00417.55
8.1.20.0050.00217.56
8.1.10.0040.00417.41
8.1.00.0020.00517.39
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0070.00018.44
8.0.270.0030.00317.37
8.0.260.0030.00317.22
8.0.250.0000.00716.94
8.0.240.0020.00517.00
8.0.230.0070.00016.98
8.0.220.0030.00316.76
8.0.210.0000.00816.76
8.0.200.0030.00316.98
8.0.190.0030.00416.84
8.0.180.0040.00416.89
8.0.170.0000.00716.91
8.0.160.0070.00016.84
8.0.150.0040.00416.89
8.0.140.0040.00416.86
8.0.130.0030.00313.28
8.0.120.0000.00816.90
8.0.110.0050.00316.96
8.0.100.0050.00316.78
8.0.90.0040.00416.95
8.0.80.0090.00616.89
8.0.70.0000.00716.86
8.0.60.0030.00316.79
8.0.50.0040.00416.68
8.0.30.0110.01317.04
8.0.20.0090.00917.40
8.0.10.0080.00016.91
8.0.00.0100.01016.69
7.4.330.0000.00515.13
7.4.320.0000.00716.48
7.4.300.0060.00016.51
7.4.290.0050.00316.65
7.4.280.0000.00816.41
7.4.270.0030.00316.51
7.4.260.0060.00316.35
7.4.250.0000.00716.56
7.4.240.0030.00416.57
7.4.230.0070.00016.63
7.4.220.0120.00616.51
7.4.210.0120.00616.70
7.4.200.0050.00316.51
7.4.160.0030.01216.37
7.4.150.0100.01017.40
7.4.140.0090.00717.86
7.4.130.0080.01116.47
7.4.120.0080.00816.51
7.4.110.0090.00916.79
7.4.100.0070.01716.55
7.4.90.0130.00316.35
7.4.80.0110.00719.39
7.4.70.0140.00316.52
7.4.60.0130.00316.58
7.4.50.0000.00416.37
7.4.40.0110.00616.49
7.4.30.0120.00416.63
7.4.00.0090.00714.86
7.3.330.0060.00013.04
7.3.320.0000.00612.98
7.3.310.0070.00016.22
7.3.300.0030.00316.05
7.3.290.0060.00916.20
7.3.280.0060.00916.23
7.3.270.0100.00717.40
7.3.260.0140.00416.44
7.3.250.0100.00716.39
7.3.240.0100.00816.39
7.3.230.0090.00716.39
7.3.210.0170.00016.65
7.3.200.0080.00819.39
7.3.190.0100.01016.65
7.3.180.0070.00916.36
7.3.170.0040.01216.59
7.3.160.0040.01216.32
7.3.120.0090.00514.63
7.3.110.0080.00714.67
7.3.100.0050.01014.94
7.3.90.0060.00914.94
7.3.80.0070.00714.80
7.3.70.0100.00314.95
7.3.60.0020.01314.92
7.3.50.0060.01014.64
7.3.40.0030.01214.63
7.3.30.0080.00314.72
7.3.20.0070.00716.74
7.3.10.0060.00816.64
7.3.00.0090.00516.66
7.2.330.0140.00316.38
7.2.320.0030.01416.70
7.2.310.0080.01216.62
7.2.300.0130.00916.64
7.2.290.0090.00816.63
7.2.250.0070.01214.97
7.2.240.0040.01315.10
7.2.230.0050.01215.01
7.2.220.0040.00915.13
7.2.210.0100.00614.98
7.2.200.0060.00514.95
7.2.190.0070.00714.93
7.2.180.0060.01014.96
7.2.170.0060.00714.95
7.2.60.0170.00316.85
7.2.00.0030.01019.35
7.1.330.0030.01115.89
7.1.320.0070.00915.76
7.1.310.0020.01115.80
7.1.300.0070.00815.73
7.1.290.0090.00315.78
7.1.280.0000.01215.74
7.1.270.0060.00615.71
7.1.260.0030.01015.56
7.1.200.0110.00715.75
7.1.100.0000.01118.10
7.1.70.0000.00717.11
7.1.60.0060.00619.25
7.1.50.0070.01416.88
7.1.00.0100.07022.32
7.0.200.0040.01116.74
7.0.140.0130.06321.92
7.0.60.0030.04019.94
7.0.50.0130.06017.88
7.0.40.0070.09320.27
7.0.30.0200.03720.13
7.0.20.0370.04020.30
7.0.10.0430.06720.23
7.0.00.0100.07320.16
5.6.280.0100.06721.13
5.6.210.0000.04320.70
5.6.200.0070.05318.12
5.6.190.0070.07020.60
5.6.180.4100.04020.50
5.6.170.0300.08020.56
5.6.160.0070.07720.46
5.6.150.0100.07718.15
5.6.140.0130.07018.23
5.6.130.0070.08318.16
5.6.120.0000.08321.11
5.6.110.0130.07721.14
5.6.100.0130.07020.98
5.6.90.0170.06720.97
5.6.80.0130.07720.53
5.6.70.4500.04320.47
5.5.350.0270.07020.35
5.5.340.0030.03717.98
5.5.330.0100.03720.19
5.5.320.0470.06320.30
5.5.310.0270.07720.49
5.5.300.0070.08017.95
5.5.290.0130.08018.08
5.5.280.0130.08320.80
5.5.270.0100.05720.76
5.5.260.0130.08320.79
5.5.250.0030.04020.67
5.5.240.0070.08320.23
5.4.450.1370.03319.54
5.4.440.0430.04719.34
5.4.430.0000.06719.42
5.4.420.0030.06019.45
5.4.410.0100.05319.28
5.4.400.0130.05019.12
5.4.390.0100.05019.13
5.4.380.0170.06018.80
5.4.370.0230.04018.78
5.4.360.0200.04018.74
5.4.350.0070.04512.01
5.4.340.0120.04312.00
5.4.320.0040.05512.49
5.4.310.0040.04012.48
5.4.300.0080.03712.48
5.4.290.0070.03912.48
5.4.280.0060.03612.38
5.4.270.0070.03612.38
5.4.260.0050.03912.38
5.4.250.0080.03612.38
5.4.240.0050.03712.38
5.4.230.0030.04012.38
5.4.220.0050.04212.37
5.4.210.0110.04712.37
5.4.200.0050.03912.38
5.4.190.0090.03412.37
5.4.180.0060.03812.37
5.4.170.0070.03612.38
5.4.160.0020.04012.38
5.4.150.0070.03812.38
5.4.140.0070.03612.06
5.4.130.0040.03912.05
5.4.120.0050.03712.00
5.4.110.0090.03212.00
5.4.100.0050.03712.00
5.4.90.0060.03712.00
5.4.80.0050.04512.00
5.4.70.0070.03612.00
5.4.60.0080.03312.00
5.4.50.0080.03411.99
5.4.40.0040.03711.98
5.4.30.0060.03611.98
5.4.20.0070.03411.98
5.4.10.0050.03611.98
5.4.00.0040.05211.47
5.3.290.0080.03912.80
5.3.280.0050.03912.71
5.3.270.0100.03812.73
5.3.260.0050.04612.72
5.3.250.0060.03912.72
5.3.240.0090.03512.72
5.3.230.0050.03912.71
5.3.220.0050.04012.68
5.3.210.0090.03912.68
5.3.200.0070.04012.68
5.3.190.0080.03712.68
5.3.180.0090.03412.68
5.3.170.0070.03612.67
5.3.160.0060.04512.68
5.3.150.0060.04212.67
5.3.140.0050.04012.66
5.3.130.0090.03612.66
5.3.120.0060.04312.66
5.3.110.0050.04012.66
5.3.100.0110.03412.12
5.3.90.0080.03712.09
5.3.80.0060.03712.09
5.3.70.0050.03712.09
5.3.60.0100.03412.07
5.3.50.0070.03812.02
5.3.40.0020.04112.02
5.3.30.0060.03511.98
5.3.20.0050.03611.75
5.3.10.0060.03511.72
5.3.00.0040.03911.71
5.2.170.0090.0289.21
5.2.160.0070.0289.21
5.2.150.0080.0279.21
5.2.140.0070.0289.21
5.2.130.0050.0309.16
5.2.120.0070.0309.16
5.2.110.0030.0329.18
5.2.100.0060.0289.17
5.2.90.0070.0279.17
5.2.80.0040.0449.17
5.2.70.0040.0359.17
5.2.60.0020.0349.12
5.2.50.0060.0399.09
5.2.40.0050.0379.06
5.2.30.0030.0329.04
5.2.20.0050.0299.03
5.2.10.0040.0288.94
5.2.00.0060.0278.79
5.1.60.0060.0228.07
5.1.50.0050.0258.07
5.1.40.0030.0278.04
5.1.30.0060.0268.40
5.1.20.0060.0288.41
5.1.10.0060.0258.14
5.1.00.0030.0278.15
5.0.50.0070.0176.63
5.0.40.0020.0216.48
5.0.30.0050.0316.30
5.0.20.0050.0186.27
5.0.10.0050.0196.25
5.0.00.0040.0326.23
4.4.90.0050.0144.78
4.4.80.0020.0164.75
4.4.70.0020.0174.75
4.4.60.0040.0174.75
4.4.50.0050.0144.77
4.4.40.0020.0264.71
4.4.30.0030.0164.75
4.4.20.0020.0224.84
4.4.10.0050.0144.85
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0040.0144.64
4.3.80.0030.0254.58
4.3.70.0020.0164.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0040.0173.29
4.3.20.0030.0183.26
4.3.10.0020.0163.22
4.3.00.0230.02015.25

preferences:
30.07 ms | 401 KiB | 5 Q