3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen_one_to_three() { for ($i = 1; $i <= 3; $i++) { // Note that $i is preserved between yields. yield $i; } } $on = gen_one_to_three(); $two = gen_one_to_three(); $three = gen_one_to_three(); $merged = [$on, $two, $three]; foreach($merged as $g) { foreach($g as $m) { var_dump($m); } }

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.0130.00716.75
8.3.50.0170.00522.06
8.3.40.0150.00018.71
8.3.30.0120.00919.21
8.3.20.0040.00420.13
8.3.10.0000.00723.53
8.3.00.0080.00020.61
8.2.180.0060.01218.18
8.2.170.0090.00622.96
8.2.160.0070.00722.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00320.52
8.2.110.0050.00322.31
8.2.100.0040.01117.91
8.2.90.0050.00319.16
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0050.00317.92
8.2.50.0030.00618.07
8.2.40.0000.00718.28
8.2.30.0000.00817.98
8.2.20.0040.00417.54
8.2.10.0040.00419.62
8.2.00.0070.00017.63
8.1.280.0040.01125.92
8.1.270.0040.00422.15
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0040.00719.04
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0030.00617.53
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0030.00521.98
8.1.150.0000.00718.75
8.1.140.0040.00417.48
8.1.130.0040.00417.87
8.1.120.0080.00017.38
8.1.110.0000.00717.49
8.1.100.0070.00017.51
8.1.90.0070.00017.38
8.1.80.0070.00017.47
8.1.70.0000.00717.45
8.1.60.0060.00317.46
8.1.50.0000.00817.41
8.1.40.0000.00717.41
8.1.30.0000.00817.62
8.1.20.0050.00317.55
8.1.10.0060.00317.57
8.1.00.0040.00417.42
8.0.300.0090.00018.77
8.0.290.0040.00417.18
8.0.280.0000.00818.41
8.0.270.0030.00317.30
8.0.260.0000.00716.83
8.0.250.0030.00316.97
8.0.240.0000.00816.88
8.0.230.0030.00316.84
8.0.220.0040.00416.80
8.0.210.0040.00416.84
8.0.200.0000.00617.02
8.0.190.0030.00516.85
8.0.180.0070.00016.91
8.0.170.0000.00816.91
8.0.160.0040.00416.95
8.0.150.0000.00716.81
8.0.140.0070.00016.92
8.0.130.0000.00513.25
8.0.120.0040.00416.79
8.0.110.0000.00816.90
8.0.100.0040.00416.87
8.0.90.0070.00016.96
8.0.80.0110.01116.88
8.0.70.0000.00817.01
8.0.60.0000.00716.85
8.0.50.0030.00516.92
8.0.30.0110.01017.05
8.0.20.0110.00817.40
8.0.10.0000.00817.06
8.0.00.0120.00816.77
7.4.330.0000.00615.15
7.4.320.0040.00416.42
7.4.300.0060.00016.61
7.4.290.0040.00416.61
7.4.280.0080.00016.60
7.4.270.0000.00716.50
7.4.260.0000.00616.54
7.4.250.0040.00416.38
7.4.240.0030.00316.53
7.4.230.0000.00716.41
7.4.220.0100.00716.44
7.4.210.0080.00916.49
7.4.200.0040.00416.69
7.4.190.0040.00316.49
7.4.160.0130.00316.62
7.4.150.0060.01117.40
7.4.140.0090.00917.86
7.4.130.0110.00616.51
7.4.120.0100.00716.60
7.4.110.0100.00716.49
7.4.100.0180.00616.37
7.4.90.0170.00016.71
7.4.80.0070.01016.61
7.4.70.0060.01016.48
7.4.60.0090.00616.52
7.4.50.0000.00816.26
7.4.40.0070.01122.77
7.4.30.0140.00416.45
7.4.00.0130.00314.93
7.3.330.0030.00313.39
7.3.320.0050.00013.14
7.3.310.0040.00416.23
7.3.300.0000.00616.23
7.3.290.0030.01216.34
7.3.280.0100.00716.36
7.3.270.0110.00717.40
7.3.260.0090.01216.42
7.3.250.0130.00416.40
7.3.240.0140.00316.55
7.3.230.0100.00616.49
7.3.210.0110.00716.45
7.3.200.0140.00319.39
7.3.190.0070.01016.37
7.3.180.0120.00316.51
7.3.170.0130.01016.60
7.3.160.0030.01316.39
7.3.120.0050.01214.96
7.3.110.0050.00914.72
7.3.100.0030.01014.90
7.3.90.0050.01114.71
7.3.80.0080.00514.86
7.3.70.0070.00614.79
7.3.60.0100.00314.83
7.3.50.0050.00914.71
7.3.40.0040.00914.77
7.3.30.0050.01114.95
7.3.20.0050.01116.75
7.3.10.0080.00516.63
7.3.00.0050.01116.73
7.2.330.0030.01416.46
7.2.320.0100.00716.77
7.2.310.0110.01116.73
7.2.300.0040.01216.63
7.2.290.0080.00716.65
7.2.250.0100.01015.15
7.2.240.0060.01114.94
7.2.230.0050.01015.16
7.2.220.0080.00914.97
7.2.210.0030.01014.93
7.2.200.0030.01215.08
7.2.190.0050.00815.10
7.2.180.0050.01015.00
7.2.170.0030.01115.02
7.2.160.0030.01014.84
7.2.150.0030.01016.91
7.2.140.0040.00717.01
7.2.130.0070.01016.64
7.2.120.0030.01416.91
7.2.110.0060.00917.13
7.2.100.0000.01216.95
7.2.90.0120.00317.03
7.2.80.0090.00616.82
7.2.70.0100.01016.86
7.2.60.0070.00916.92
7.2.50.0030.01517.09
7.2.40.0100.00716.77
7.2.30.0030.01217.05
7.2.20.0070.01017.07
7.2.10.0040.00816.86
7.2.00.0050.00818.11
7.1.330.0060.01015.78
7.1.320.0090.00415.75
7.1.310.0040.01015.85
7.1.300.0040.00915.76
7.1.290.0050.00815.58
7.1.280.0080.00415.68
7.1.270.0060.01015.77
7.1.260.0050.01115.82
7.1.250.0070.00315.54
7.1.200.0070.00015.53
7.1.100.0040.01218.18
7.1.70.0060.00617.10
7.1.60.0130.01019.27
7.1.50.0060.01616.81
7.1.00.0000.09722.35
7.0.200.0070.00716.71
7.0.140.0070.07022.02
7.0.60.0200.06320.01
7.0.50.0070.05017.90
7.0.40.0030.08320.14
7.0.30.0330.05020.24
7.0.20.0130.04320.04
7.0.10.0100.03720.26
7.0.00.0100.08720.20
5.6.280.0070.07020.86
5.6.210.0030.08720.61
5.6.200.0100.07318.16
5.6.190.0070.05720.53
5.6.180.0400.03720.35
5.6.170.0300.07020.50
5.6.160.0030.04020.71
5.6.150.0100.07718.29
5.6.140.0130.04318.15
5.6.130.0030.06018.29
5.6.120.0100.08021.12
5.6.110.0070.07321.14
5.6.100.0030.07020.88
5.6.90.0100.08020.98
5.6.80.0070.08020.38
5.6.70.3630.03720.34
5.5.350.0100.08020.35
5.5.340.0070.04317.95
5.5.330.0000.05020.37
5.5.320.0000.04020.27
5.5.310.0200.06720.18
5.5.300.0070.08017.98
5.5.290.0070.04718.08
5.5.280.0070.08320.80
5.5.270.0070.08020.96
5.5.260.0030.06320.79
5.5.250.0230.07020.77
5.5.240.0070.03320.35
5.4.450.0400.04319.41
5.4.440.1000.06019.39
5.4.430.0170.05019.58
5.4.420.1100.05319.55
5.4.410.0700.06319.45
5.4.400.0530.06718.79
5.4.390.0500.05318.79
5.4.380.0170.05318.52
5.4.370.0030.06018.53
5.4.360.0200.04718.73
5.4.350.0130.05718.49
5.4.340.0130.05718.62
5.4.320.0060.04412.52
5.4.310.0050.04012.51
5.4.300.0050.04412.52
5.4.290.0100.03912.51
5.4.280.0100.03312.41
5.4.270.0070.04812.41
5.4.260.0100.03912.41
5.4.250.0060.04312.41
5.4.240.0070.03912.41
5.4.230.0060.04112.40
5.4.220.0050.04712.40
5.4.210.0090.03912.40
5.4.200.0090.03512.40
5.4.190.0260.09512.40
5.4.180.0140.04412.40
5.4.170.0150.04412.41
5.4.160.0130.04612.40
5.4.150.0200.04012.40
5.4.140.0110.04812.09
5.4.130.0110.04912.07
5.4.120.0170.04512.04
5.4.110.0210.04112.03
5.4.100.0210.04112.03
5.4.90.0430.07612.03
5.4.80.0170.04212.04
5.4.70.0180.04112.02
5.4.60.0230.03512.03
5.4.50.0170.04212.02
5.4.40.0200.04012.01
5.4.30.0180.04312.00
5.4.20.0200.03912.00
5.4.10.0190.04112.01
5.4.00.0120.04511.50
5.3.290.0080.04612.80
5.3.280.0100.03712.70
5.3.270.0150.04612.73
5.3.260.0180.04412.72
5.3.250.0190.04612.71
5.3.240.0120.04812.72
5.3.230.0190.04512.71
5.3.220.0390.08312.68
5.3.210.0170.04512.68
5.3.200.0200.04212.68
5.3.190.0180.04412.68
5.3.180.0150.04712.68
5.3.170.0320.06112.67
5.3.160.0260.07012.68
5.3.150.0140.04712.67
5.3.140.0160.04712.66
5.3.130.0210.04012.66
5.3.120.0140.04712.66
5.3.110.0220.04312.66
5.3.100.0200.04212.12
5.3.90.0110.05012.09
5.3.80.0220.04212.09
5.3.70.0440.11512.09
5.3.60.0290.09412.07
5.3.50.0180.04512.03
5.3.40.0320.09412.02
5.3.30.0190.04111.99
5.3.20.0250.06911.77
5.3.10.0190.03811.72
5.3.00.0150.04111.71
5.2.170.0140.0389.22
5.2.160.0140.0409.22
5.2.150.0130.0389.22
5.2.140.0210.0359.22
5.2.130.0130.0359.18
5.2.120.0100.0429.17
5.2.110.0130.0369.18
5.2.100.0160.0329.18
5.2.90.0160.0339.17
5.2.80.0110.0389.16
5.2.70.0200.0299.17
5.2.60.0120.0369.12
5.2.50.0150.0359.09
5.2.40.0400.0709.07
5.2.30.0090.0429.04
5.2.20.0140.0349.04
5.2.10.0140.0338.94
5.2.00.0150.0348.79
5.1.60.0100.0318.08
5.1.50.0130.0288.07
5.1.40.0130.0258.07
5.1.30.0130.0288.40
5.1.20.0110.0328.45
5.1.10.0100.0328.15
5.1.00.0100.0318.16
5.0.50.0090.0246.64
5.0.40.0110.0206.50
5.0.30.0100.0346.31
5.0.20.0170.0756.28
5.0.10.0100.0216.25
5.0.00.0100.0356.24
4.4.90.0110.0154.78
4.4.80.0080.0194.76
4.4.70.0070.0194.75
4.4.60.0070.0194.75
4.4.50.0090.0184.77
4.4.40.0070.0314.71
4.4.30.0130.0154.76
4.4.20.0060.0204.85
4.4.10.0080.0174.85
4.4.00.0190.0764.76
4.3.110.0050.0234.67
4.3.100.0070.0194.67
4.3.90.0100.0164.63
4.3.80.0090.0334.58
4.3.70.0340.0834.63
4.3.60.0090.0164.63
4.3.50.0090.0194.62
4.3.40.0100.0554.54
4.3.30.0060.0213.30
4.3.20.0050.0283.28
4.3.10.0020.0213.25
4.3.00.0100.01315.48

preferences:
39.17 ms | 401 KiB | 5 Q