3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master = array(); $arrColors = array('R', 'B', 'G' ,'Y'); $arrNumbers = array('1', '2', '3', '4'); foreach($arrColors as $color) { foreach($arrNumbers as $num) { //$master[$color] = $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.60.0120.00318.18
8.3.50.0140.00721.87
8.3.40.0070.00718.80
8.3.30.0100.00319.09
8.3.20.0040.00420.29
8.3.10.0040.00420.32
8.3.00.0080.00019.13
8.2.180.0170.00316.75
8.2.170.0100.00722.96
8.2.160.0100.00320.35
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00021.05
8.2.110.0040.00422.03
8.2.100.0090.00320.22
8.2.90.0040.00419.14
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0060.00317.80
8.2.50.0040.00718.07
8.2.40.0000.00818.16
8.2.30.0050.00318.12
8.2.20.0040.00417.57
8.2.10.0040.00418.17
8.2.00.0080.00017.87
8.1.280.0140.00325.92
8.1.270.0060.00322.08
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.24
8.1.230.0040.00719.08
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0110.00817.13
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00421.98
8.1.150.0000.00718.86
8.1.140.0040.00417.44
8.1.130.0040.00417.84
8.1.120.0030.00317.45
8.1.110.0000.00817.45
8.1.100.0000.00817.46
8.1.90.0040.00417.46
8.1.80.0030.00517.46
8.1.70.0030.00317.43
8.1.60.0080.00017.64
8.1.50.0000.00817.44
8.1.40.0040.00417.54
8.1.30.0030.00517.63
8.1.20.0040.00417.62
8.1.10.0050.00517.52
8.1.00.0050.00317.43
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.42
8.0.270.0030.00317.19
8.0.260.0000.00617.13
8.0.250.0030.00316.96
8.0.240.0060.00016.93
8.0.230.0030.00316.91
8.0.220.0080.00016.97
8.0.210.0000.00716.79
8.0.200.0000.00716.97
8.0.190.0040.00416.95
8.0.180.0000.00816.95
8.0.170.0000.00816.92
8.0.160.0040.00316.82
8.0.150.0040.00416.74
8.0.140.0000.00716.75
8.0.130.0030.00313.34
8.0.120.0030.00516.89
8.0.110.0070.00016.92
8.0.100.0000.00716.95
8.0.90.0030.00416.86
8.0.80.0060.00916.90
8.0.70.0040.00416.91
8.0.60.0000.00816.70
8.0.50.0000.00816.93
8.0.30.0080.01217.21
8.0.20.0190.00617.40
8.0.10.0040.00416.91
8.0.00.0090.00816.70
7.4.330.0050.00015.20
7.4.320.0000.00716.60
7.4.300.0070.00016.54
7.4.290.0030.00616.50
7.4.280.0000.00816.55
7.4.270.0030.00316.60
7.4.260.0000.00716.50
7.4.250.0040.00416.48
7.4.240.0050.00216.44
7.4.230.0040.00416.51
7.4.220.0120.01216.38
7.4.210.0140.00316.53
7.4.200.0070.00016.35
7.4.160.0100.00716.47
7.4.150.0090.00917.40
7.4.140.0080.00817.86
7.4.130.0120.00916.54
7.4.120.0090.00716.50
7.4.110.0080.00916.62
7.4.100.0090.00916.38
7.4.90.0070.01316.46
7.4.80.0140.00819.39
7.4.70.0130.00316.62
7.4.60.0120.00416.37
7.4.50.0000.00716.49
7.4.40.0140.00416.39
7.4.30.0030.01616.34
7.4.00.0070.01014.89
7.3.330.0000.00513.19
7.3.320.0000.00513.14
7.3.310.0000.00716.10
7.3.300.0030.00316.17
7.3.290.0090.00916.22
7.3.280.0100.00616.27
7.3.270.0070.01017.40
7.3.260.0100.00716.63
7.3.250.0080.01216.54
7.3.240.0100.00616.27
7.3.230.0100.00716.39
7.3.210.0070.01016.32
7.3.200.0110.00819.39
7.3.190.0090.01216.40
7.3.180.0060.01316.29
7.3.170.0070.01116.46
7.3.160.0120.00316.46
7.3.10.0100.00516.32
7.3.00.0120.00216.63
7.2.330.0070.01016.57
7.2.320.0090.00916.65
7.2.310.0090.00916.61
7.2.300.0070.01016.64
7.2.290.0140.00816.63
7.2.130.0030.01016.62
7.2.120.0070.01016.41
7.2.110.0090.00616.71
7.2.100.0120.00616.81
7.2.90.0030.01016.36
7.2.80.0140.00716.64
7.2.70.0030.01316.54
7.2.60.0070.01016.65
7.2.50.0130.00916.52
7.2.40.0030.00816.75
7.2.30.0060.01716.53
7.2.20.0000.01316.61
7.2.10.0100.00716.64
7.2.00.0110.00318.04
7.1.250.0120.00315.65
7.1.200.0030.01015.81
7.1.100.0090.00417.98
7.1.70.0000.00716.91
7.1.60.0070.01819.32
7.1.50.0130.01016.86
7.1.00.0070.07022.44
7.0.200.6880.00716.84
7.0.140.0100.06722.07
7.0.60.0030.07719.98
7.0.50.0100.08317.89
7.0.40.0070.08319.98
7.0.30.0300.04720.33
7.0.20.0300.04020.16
7.0.10.0130.06720.23
7.0.00.0130.07720.07
5.6.210.0100.07720.54
5.6.200.0100.07718.18
5.6.190.0070.04320.50
5.6.180.0470.07320.50
5.6.170.0330.05720.55
5.6.160.0100.07320.54
5.6.150.0100.08018.29
5.6.140.0030.04018.15
5.6.130.0130.08018.17
5.6.120.0030.04320.91
5.6.110.0030.06721.11
5.6.100.0100.06321.10
5.6.90.0100.07320.97
5.6.80.0100.05320.39
5.5.350.0270.06720.46
5.5.340.0070.08718.08
5.5.330.0030.04020.25
5.5.320.0400.06020.24
5.5.310.0170.08320.50
5.5.300.0000.08718.07
5.5.290.0070.06318.03
5.5.280.0030.07020.73
5.5.270.0000.09320.85
5.5.260.0130.08720.96
5.5.250.0070.04320.50
5.5.240.0130.07720.27
5.4.450.0300.04719.41
5.4.440.1130.04019.49
5.4.430.0600.04319.34
5.4.420.0630.00019.46
5.4.410.0670.00019.31
5.4.400.0670.00019.09
5.4.390.0630.00019.16
5.4.380.0630.00019.16
5.4.370.0630.00019.06
5.4.360.0630.00019.16
5.4.350.0770.00019.06
5.4.340.0630.00019.26
5.4.320.0080.03412.48
5.4.310.0050.03912.48
5.4.300.0070.03512.48
5.4.290.0080.03512.48
5.4.280.0080.03312.38
5.4.270.0050.03712.38
5.4.260.0080.03512.38
5.4.250.0080.04212.38
5.4.240.0090.03212.38
5.4.230.0100.03412.37
5.4.220.0080.03612.37
5.4.210.0090.03412.37
5.4.200.0060.03612.37
5.4.190.0030.03712.37
5.4.180.0070.03312.36
5.4.170.0060.03612.38
5.4.160.0080.03412.37
5.4.150.0040.03812.37
5.4.140.0060.03712.05
5.4.130.0050.03712.04
5.4.120.0060.04312.00
5.4.110.0080.03611.99
5.4.100.0070.03412.00
5.4.90.0110.03212.00
5.4.80.0060.03712.00
5.4.70.0080.03311.99
5.4.60.0060.03511.99
5.4.50.0060.03611.99
5.4.40.0070.04111.98
5.4.30.0110.04511.98
5.4.20.0050.03711.97
5.4.10.0070.03411.98
5.4.00.0060.03711.47
5.3.290.0050.04212.80
5.3.280.0060.03812.71
5.3.270.0060.04112.73
5.3.260.0070.03812.72
5.3.250.0050.03912.72
5.3.240.0080.04812.72
5.3.230.0060.03812.71
5.3.220.0100.04012.68
5.3.210.0080.03712.68
5.3.200.0060.03612.68
5.3.190.0030.03912.68
5.3.180.0060.03812.67
5.3.170.0040.04512.67
5.3.160.0090.03412.67
5.3.150.0100.03412.67
5.3.140.0070.03612.66
5.3.130.0060.04612.66
5.3.120.0050.03912.66
5.3.110.0070.03712.66
5.3.100.0110.03312.12
5.3.90.0040.03712.09
5.3.80.0070.03612.08
5.3.70.0060.03512.08
5.3.60.0080.03312.06
5.3.50.0060.03512.01
5.3.40.0050.03712.01
5.3.30.0070.03911.97
5.3.20.0060.03911.75
5.3.10.0100.03011.72
5.3.00.0070.03511.70
5.2.170.0060.0299.21
5.2.160.0050.0289.21
5.2.150.0020.0339.21
5.2.140.0050.0309.20
5.2.130.0060.0279.16
5.2.120.0060.0279.16
5.2.110.0050.0289.17
5.2.100.0080.0249.17
5.2.90.0070.0279.17
5.2.80.0050.0379.16
5.2.70.0040.0309.17
5.2.60.0080.0389.11
5.2.50.0050.0299.08
5.2.40.0070.0279.06
5.2.30.0080.0319.04
5.2.20.0040.0289.03
5.2.10.0040.0278.94
5.2.00.0050.0308.80
5.1.60.0060.0218.07
5.1.50.0040.0258.07
5.1.40.0070.0228.05
5.1.30.0060.0238.39
5.1.20.0060.0298.42
5.1.10.0030.0268.14
5.1.00.0020.0278.14
5.0.50.0050.0206.62
5.0.40.0030.0196.48
5.0.30.0020.0316.29
5.0.20.0040.0246.26
5.0.10.0040.0226.24
5.0.00.0050.0286.24
4.4.90.0040.0184.78
4.4.80.0030.0214.75
4.4.70.0020.0164.75
4.4.60.0030.0154.75
4.4.50.0040.0224.77
4.4.40.0040.0234.71
4.4.30.0020.0164.76
4.4.20.0040.0134.84
4.4.10.0040.0144.85
4.4.00.0050.0224.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0030.0174.63
4.3.80.0050.0234.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0050.0174.63
4.3.40.0040.0224.54
4.3.30.0030.0233.29
4.3.20.0020.0183.27
4.3.10.0020.0173.22
4.3.00.0130.01713.59

preferences:
44.33 ms | 401 KiB | 5 Q