3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master = array(); $arrColors = array('Red', 'Blue', 'Green' ,'Yellow'); $arrNumbers = array('1', '2', '3', '4'); foreach($arrColors as $color) { foreach($arrNumbers as $num) { $temp = $color.' - '.$num; array_push($master, $temp); //echo "\n"; } } print_r($master);

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.40.0060.00918.50
8.3.30.0100.00718.83
8.3.20.0000.00820.21
8.3.10.0080.00020.48
8.3.00.0040.00419.27
8.2.170.0070.00722.96
8.2.160.0030.01020.35
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0000.00822.05
8.2.110.0110.00021.04
8.2.100.0120.00017.78
8.2.90.0040.00418.03
8.2.80.0030.00617.97
8.2.70.0060.00317.34
8.2.60.0030.00617.68
8.2.50.0110.00018.07
8.2.40.0080.00018.16
8.2.30.0030.00517.96
8.2.20.0040.00417.59
8.2.10.0050.00318.12
8.2.00.0070.00017.71
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.54
8.1.230.0110.00020.95
8.1.220.0090.00017.74
8.1.210.0070.00418.99
8.1.200.0080.00017.23
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0060.00318.62
8.1.160.0040.00422.05
8.1.150.0040.00418.95
8.1.140.0000.00717.35
8.1.130.0030.00317.86
8.1.120.0040.00417.50
8.1.110.0040.00417.50
8.1.100.0000.00817.50
8.1.90.0000.00717.51
8.1.80.0000.00717.37
8.1.70.0000.00717.44
8.1.60.0090.00017.56
8.1.50.0040.00417.41
8.1.40.0060.00317.50
8.1.30.0060.00317.46
8.1.20.0050.00217.56
8.1.10.0040.00417.52
8.1.00.0040.00417.52
8.0.300.0040.00419.90
8.0.290.0000.00716.63
8.0.280.0030.00418.40
8.0.270.0030.00317.27
8.0.260.0040.00417.25
8.0.250.0040.00416.96
8.0.240.0000.00616.89
8.0.230.0000.00716.92
8.0.220.0040.00416.75
8.0.210.0040.00416.89
8.0.200.0080.00016.97
8.0.190.0040.00416.91
8.0.180.0040.00416.89
8.0.170.0030.00616.94
8.0.160.0000.00816.82
8.0.150.0070.00316.82
8.0.140.0000.00816.79
8.0.130.0000.00513.32
8.0.120.0080.00016.76
8.0.110.0040.00416.91
8.0.100.0050.00216.78
8.0.90.0040.00416.76
8.0.80.0070.00716.89
8.0.70.0050.00316.76
8.0.60.0080.00016.78
8.0.50.0000.00716.88
8.0.30.0070.01517.06
8.0.20.0080.01117.40
8.0.10.0050.00216.95
8.0.00.0090.01216.83
7.4.330.0050.00015.00
7.4.320.0030.00316.60
7.4.300.0030.00316.59
7.4.290.0030.00316.52
7.4.280.0060.00316.49
7.4.270.0030.00316.48
7.4.260.0000.00716.43
7.4.250.0000.00716.46
7.4.240.0020.00516.55
7.4.230.0030.00316.34
7.4.220.0070.01116.66
7.4.210.0120.00316.56
7.4.200.0030.00316.48
7.4.160.0110.01116.50
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0070.01216.53
7.4.120.0110.00616.40
7.4.110.0110.00616.46
7.4.100.0070.01016.54
7.4.90.0110.00616.52
7.4.80.0100.00719.39
7.4.70.0130.01016.51
7.4.60.0100.00616.61
7.4.50.0000.00916.52
7.4.40.0090.00616.63
7.4.30.0120.00616.65
7.4.00.0070.01014.87
7.3.330.0000.00513.06
7.3.320.0000.00513.06
7.3.310.0000.00816.40
7.3.300.0000.00716.24
7.3.290.0150.00616.29
7.3.280.0040.01216.28
7.3.270.0100.00717.40
7.3.260.0090.00916.37
7.3.250.0050.01616.62
7.3.240.0090.00616.16
7.3.230.0130.00316.64
7.3.210.0040.01116.35
7.3.200.0060.01219.39
7.3.190.0130.00416.46
7.3.180.0070.01116.18
7.3.170.0160.00016.27
7.3.160.0060.01016.29
7.2.330.0100.00716.75
7.2.320.0110.00616.63
7.2.310.0090.00916.52
7.2.300.0000.01616.62
7.2.290.0180.00316.63
7.2.00.0030.01019.46
7.1.100.0030.01017.99
7.1.70.0060.00616.87
7.1.60.0030.02019.32
7.1.50.0070.01416.85
7.1.00.0000.07722.36
7.0.200.0060.00316.80
7.0.140.0000.07021.96
7.0.70.5200.04319.96
7.0.60.0030.08320.02
7.0.50.0100.08317.86
7.0.40.0070.08720.19
7.0.30.0630.06320.32
7.0.20.0330.07720.20
7.0.10.0270.08320.09
7.0.00.0000.04720.16
5.6.280.0030.07720.90
5.6.210.0100.07020.54
5.6.200.0100.07318.29
5.6.190.0130.04320.55
5.6.180.0100.05020.43
5.6.170.0200.07020.47
5.6.160.0030.08320.57
5.6.150.0030.09018.25
5.6.140.0100.07318.24
5.6.130.0070.07718.21
5.6.120.0030.04320.96
5.6.110.0070.08020.95
5.6.100.0100.07021.00
5.6.90.0100.07020.99
5.6.80.0100.03320.50
5.6.70.0200.07020.38
5.5.350.0130.07320.42
5.5.340.0000.07317.98
5.5.330.0030.04320.19
5.5.320.0070.05720.32
5.5.310.0300.07320.29
5.5.300.0170.07317.95
5.5.290.0030.09317.91
5.5.280.0130.05720.76
5.5.270.0070.03720.88
5.5.260.0030.06320.89
5.5.250.0200.05720.69
5.5.240.0130.07720.34
5.4.450.0830.05319.39
5.4.440.0500.04019.19
5.4.430.0570.04019.56
5.4.420.0670.00019.54
5.4.410.0670.00019.25
5.4.400.0770.00019.12
5.4.390.0830.00019.13
5.4.380.0630.00019.13
5.4.370.0630.00019.24
5.4.360.0630.00019.13
5.4.350.0670.00018.98
5.4.340.0630.00019.16
5.4.320.0110.04912.48
5.4.310.0040.04712.48
5.4.300.0070.03812.48
5.4.290.0050.04412.48
5.4.280.0080.04612.38
5.4.270.0070.04912.38
5.4.260.0070.04412.38
5.4.250.0060.04812.38
5.4.240.0090.04012.38
5.4.230.0080.04012.37
5.4.220.0080.04912.37
5.4.210.0050.04212.37
5.4.200.0070.03812.37
5.4.190.0080.04412.37
5.4.180.0080.04912.36
5.4.170.0070.04512.38
5.4.160.0120.04412.38
5.4.150.0070.04512.37
5.4.140.0080.04612.05
5.4.130.0090.05412.04
5.4.120.0100.04512.00
5.4.110.0060.04912.00
5.4.100.0100.03511.99
5.4.90.0090.04312.00
5.4.80.0040.04611.99
5.4.70.0140.03911.99
5.4.60.0040.03811.99
5.4.50.0060.03711.99
5.4.40.0080.04611.98
5.4.30.0150.04011.98
5.4.20.0070.04911.98
5.4.10.0050.04411.98
5.4.00.0080.03511.47
5.3.290.0100.03812.80
5.3.280.0110.04812.70
5.3.270.0100.05112.72
5.3.260.0110.05112.72
5.3.250.0070.05312.72
5.3.240.0090.04712.72
5.3.230.0060.04012.71
5.3.220.0100.04612.68
5.3.210.0030.04312.68
5.3.200.0080.03912.68
5.3.190.0090.04212.68
5.3.180.0050.04212.67
5.3.170.0080.03612.67
5.3.160.0090.03612.67
5.3.150.0040.04312.68
5.3.140.0090.03412.66
5.3.130.0050.04112.66
5.3.120.0070.04312.66
5.3.110.0100.05212.65
5.3.100.0050.04712.12
5.3.90.0080.04012.09
5.3.80.0140.04212.08
5.3.70.0110.04612.08
5.3.60.0100.04712.06
5.3.50.0110.04712.02
5.3.40.0070.05212.01
5.3.30.0120.03511.98
5.3.20.0060.03911.75
5.3.10.0050.04411.72
5.3.00.0040.03811.71
5.2.170.0050.0309.21
5.2.160.0040.0309.21
5.2.150.0050.0319.21
5.2.140.0040.0319.20
5.2.130.0050.0329.16
5.2.120.0050.0279.17
5.2.110.0060.0299.17
5.2.100.0080.0369.17
5.2.90.0100.0279.17
5.2.80.0100.0349.17
5.2.70.0050.0419.17
5.2.60.0050.0319.12
5.2.50.0060.0359.08
5.2.40.0050.0349.06
5.2.30.0070.0319.04
5.2.20.0090.0269.02
5.2.10.0110.0278.94
5.2.00.0030.0358.80
5.1.60.0050.0248.07
5.1.50.0040.0298.06
5.1.40.0040.0298.05
5.1.30.0050.0278.39
5.1.20.0130.0218.41
5.1.10.0050.0258.14
5.1.00.0050.0258.14
5.0.50.0050.0216.62
5.0.40.0000.0246.48
5.0.30.0020.0376.29
5.0.20.0050.0236.27
5.0.10.0020.0296.25
5.0.00.0070.0316.23
4.4.90.0030.0164.77
4.4.80.0060.0154.75
4.4.70.0020.0174.75
4.4.60.0020.0164.76
4.4.50.0030.0164.77
4.4.40.0020.0314.71
4.4.30.0030.0184.76
4.4.20.0020.0204.84
4.4.10.0040.0154.85
4.4.00.0020.0264.76
4.3.110.0030.0164.66
4.3.100.0030.0164.67
4.3.90.0020.0164.63
4.3.80.0040.0244.58
4.3.70.0020.0164.63
4.3.60.0000.0174.63
4.3.50.0040.0154.62
4.3.40.0030.0244.54
4.3.30.0020.0173.29
4.3.20.0010.0193.26
4.3.10.0060.0153.23
4.3.00.0070.01313.59

preferences:
37.87 ms | 400 KiB | 5 Q