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) { array_push($master, $num); //$master += array($color => $num); //echo $color.' => '.$num; //echo "\n"; } array_push($master, $master); } 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.0070.01318.31
8.3.50.0070.01221.95
8.3.40.0040.01118.62
8.3.30.0110.00318.96
8.3.20.0090.00020.33
8.3.10.0040.00420.40
8.3.00.0080.00019.25
8.2.180.0070.00716.63
8.2.170.0150.00622.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0070.00021.96
8.2.110.0030.00622.11
8.2.100.0140.00017.72
8.2.90.0000.00819.13
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0040.00417.93
8.2.50.0040.00718.07
8.2.40.0040.00417.91
8.2.30.0070.00017.89
8.2.20.0040.00417.68
8.2.10.0040.00418.11
8.2.00.0040.00417.63
8.1.280.0070.00725.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.79
8.1.230.0090.00319.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0000.00717.35
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0070.00021.96
8.1.150.0000.00818.77
8.1.140.0040.00417.39
8.1.130.0030.00617.51
8.1.120.0000.00717.55
8.1.110.0000.00717.36
8.1.100.0000.00717.43
8.1.90.0030.00317.46
8.1.80.0000.00717.55
8.1.70.0030.00317.45
8.1.60.0000.00817.61
8.1.50.0040.00417.46
8.1.40.0000.00717.38
8.1.30.0030.00517.52
8.1.20.0040.00417.65
8.1.10.0040.00417.52
8.1.00.0030.00517.38
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.46
8.0.270.0000.00717.31
8.0.260.0000.00916.75
8.0.250.0060.00016.94
8.0.240.0060.00016.93
8.0.230.0000.00716.92
8.0.220.0040.00416.80
8.0.210.0000.00616.86
8.0.200.0000.00616.84
8.0.190.0040.00416.86
8.0.180.0040.00416.99
8.0.170.0000.00816.81
8.0.160.0030.00316.87
8.0.150.0080.00016.74
8.0.140.0000.00716.77
8.0.130.0000.00613.32
8.0.120.0100.00016.78
8.0.110.0040.00416.91
8.0.100.0000.00816.89
8.0.90.0000.00716.93
8.0.80.0060.01016.86
8.0.70.0080.00016.95
8.0.60.0040.00416.70
8.0.50.0050.00316.83
8.0.30.0110.00916.90
8.0.20.0110.00817.40
8.0.10.0040.00416.89
8.0.00.0090.01016.63
7.4.330.0000.00515.07
7.4.320.0030.00316.51
7.4.300.0030.00316.58
7.4.290.0050.00316.50
7.4.280.0050.00216.60
7.4.270.0030.00516.46
7.4.260.0040.00416.51
7.4.250.0000.00816.46
7.4.240.0040.00316.60
7.4.230.0000.00716.71
7.4.220.0090.01316.57
7.4.210.0090.01216.54
7.4.200.0000.00716.35
7.4.160.0060.00916.50
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0090.01216.61
7.4.120.0070.01316.52
7.4.110.0040.01216.27
7.4.100.0090.00916.41
7.4.90.0120.00616.55
7.4.80.0100.00919.39
7.4.70.0160.00316.48
7.4.60.0060.01316.46
7.4.50.0040.00016.23
7.4.40.0060.00916.48
7.4.30.0150.00616.65
7.4.00.0070.01014.79
7.3.330.0030.00313.10
7.3.320.0000.00713.07
7.3.310.0070.00016.34
7.3.300.0030.00316.31
7.3.290.0060.01216.30
7.3.280.0100.00716.28
7.3.270.0140.00417.40
7.3.260.0090.00916.54
7.3.250.0100.00816.32
7.3.240.0040.01216.39
7.3.230.0070.01016.39
7.3.210.0120.00616.16
7.3.200.0060.01219.39
7.3.190.0160.00316.55
7.3.180.0130.00316.45
7.3.170.0080.00816.31
7.3.160.0060.00916.36
7.3.10.0070.00716.90
7.3.00.0030.00716.75
7.2.330.0070.01016.60
7.2.320.0180.00016.66
7.2.310.0060.01116.38
7.2.300.0140.00416.67
7.2.290.0090.01316.71
7.2.130.0030.01016.79
7.2.120.0060.00316.95
7.2.110.0060.00916.87
7.2.100.0000.01416.76
7.2.90.0040.00816.93
7.2.80.0060.00316.64
7.2.70.0030.00916.95
7.2.60.0080.00616.75
7.2.50.0100.00316.93
7.2.40.0100.00317.01
7.2.30.0040.00416.98
7.2.20.0060.00916.73
7.2.10.0070.00716.91
7.2.00.0070.00518.06
7.1.250.0040.00715.66
7.1.200.0000.01115.57
7.1.100.0040.00817.79
7.1.70.0040.00417.26
7.1.60.0100.01419.32
7.1.50.0130.01316.90
7.1.00.0130.06722.30
7.0.200.0070.00416.96
7.0.140.0100.07021.95
7.0.60.0130.06021.68
7.0.50.0100.08017.95
7.0.40.0170.06720.09
7.0.30.0300.08320.33
7.0.20.0170.09020.02
7.0.10.0100.04720.15
7.0.00.0070.04720.06
5.6.280.0100.07021.12
5.6.210.0130.07720.72
5.6.200.0000.07318.14
5.6.190.0070.05320.33
5.6.180.0300.04320.47
5.6.170.0270.03320.34
5.6.160.0070.09020.57
5.6.150.0000.09018.13
5.6.140.0100.06718.14
5.6.130.0070.03718.18
5.6.120.0070.08720.98
5.6.110.0030.04720.96
5.6.100.0070.08021.10
5.6.90.0130.03320.93
5.6.80.0070.06020.36
5.5.350.0330.06720.44
5.5.340.0070.04717.92
5.5.330.0030.04720.31
5.5.320.0400.07320.37
5.5.310.0270.06020.41
5.5.300.0070.08317.98
5.5.290.0030.08018.02
5.5.280.0070.08720.90
5.5.270.0100.07720.82
5.5.260.0100.04320.73
5.5.250.0100.08020.57
5.5.240.0430.06020.25
5.4.450.0570.04019.20
5.4.440.1170.04319.46
5.4.430.0470.04719.54
5.4.420.0770.00019.32
5.4.410.0770.00019.30
5.4.400.0700.00019.25
5.4.390.0670.00019.21
5.4.380.0700.00019.04
5.4.370.0700.00019.12
5.4.360.0700.00019.11
5.4.350.0730.00019.11
5.4.340.0730.00019.11
5.4.320.0120.03912.49
5.4.310.0160.03612.48
5.4.300.0110.04712.50
5.4.290.0150.03412.49
5.4.280.0110.03712.39
5.4.270.0090.04112.38
5.4.260.0180.03512.38
5.4.250.0130.03812.38
5.4.240.0080.04112.38
5.4.230.0120.04212.38
5.4.220.0190.04612.38
5.4.210.0110.04012.38
5.4.200.0120.03712.38
5.4.190.0120.03812.38
5.4.180.0060.04312.37
5.4.170.0140.03512.39
5.4.160.0120.03612.38
5.4.150.0110.03712.38
5.4.140.0160.03312.06
5.4.130.0140.03312.05
5.4.120.0110.03512.00
5.4.110.0120.03512.00
5.4.100.0200.03412.00
5.4.90.0180.04412.00
5.4.80.0140.03612.00
5.4.70.0080.04612.00
5.4.60.0180.03412.00
5.4.50.0120.03911.99
5.4.40.0110.04011.98
5.4.30.0150.03911.98
5.4.20.0110.03711.98
5.4.10.0150.03311.98
5.4.00.0150.03611.48
5.3.290.0080.04312.80
5.3.280.0150.05312.70
5.3.270.0160.03912.72
5.3.260.0090.05312.71
5.3.250.0170.04812.72
5.3.240.0160.04012.72
5.3.230.0110.04612.71
5.3.220.0180.03512.68
5.3.210.0110.03912.68
5.3.200.0120.05112.68
5.3.190.0110.03912.68
5.3.180.0080.04012.67
5.3.170.0170.04012.66
5.3.160.0160.03412.68
5.3.150.0130.03912.67
5.3.140.0200.03512.66
5.3.130.0130.04012.66
5.3.120.0090.04112.65
5.3.110.0180.03612.66
5.3.100.0130.04112.12
5.3.90.0100.03912.09
5.3.80.0160.03312.09
5.3.70.0100.04212.08
5.3.60.0140.03612.07
5.3.50.0140.04412.02
5.3.40.0120.03912.02
5.3.30.0110.03611.98
5.3.20.0080.03811.76
5.3.10.0160.03211.72
5.3.00.0130.04211.71
5.2.170.0110.0329.21
5.2.160.0110.0299.21
5.2.150.0110.0319.21
5.2.140.0170.0379.21
5.2.130.0090.0329.17
5.2.120.0080.0319.17
5.2.110.0090.0319.18
5.2.100.0140.0289.17
5.2.90.0120.0309.17
5.2.80.0110.0339.17
5.2.70.0080.0369.17
5.2.60.0090.0359.12
5.2.50.0080.0339.09
5.2.40.0150.0359.07
5.2.30.0130.0289.05
5.2.20.0080.0389.03
5.2.10.0080.0318.94
5.2.00.0130.0408.80
5.1.60.0120.0238.07
5.1.50.0100.0318.07
5.1.40.0090.0278.05
5.1.30.0190.0268.40
5.1.20.0090.0278.42
5.1.10.0140.0318.15
5.1.00.0080.0258.14
5.0.50.0100.0256.62
5.0.40.0100.0256.49
5.0.30.0160.0376.30
5.0.20.0090.0226.27
5.0.10.0100.0226.24
5.0.00.0100.0306.24
4.4.90.0100.0264.78
4.4.80.0080.0154.76
4.4.70.0110.0154.75
4.4.60.0090.0194.75
4.4.50.0090.0174.77
4.4.40.0120.0254.70
4.4.30.0060.0194.76
4.4.20.0080.0154.84
4.4.10.0080.0154.85
4.4.00.0090.0284.76
4.3.110.0060.0194.67
4.3.100.0090.0174.66
4.3.90.0070.0164.64
4.3.80.0090.0284.58
4.3.70.0090.0164.63
4.3.60.0100.0144.63
4.3.50.0060.0224.63
4.3.40.0090.0274.53
4.3.30.0110.0223.29
4.3.20.0120.0153.27
4.3.10.0080.0163.23
4.3.00.0030.01713.59

preferences:
38.79 ms | 401 KiB | 5 Q