3v4l.org

run code in 300+ PHP versions simultaneously
<?php function & genRefInner() { $var = 1; yield $var; } function & genRefOuter() { return genRefInner(); } foreach(genRefOuter() as $i) { var_dump($i); }

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.0.30.0100.01417.05
8.0.20.0130.00617.40
8.0.00.0020.01616.71
7.4.160.0070.01416.44
7.4.150.0140.00417.40
7.4.140.0060.01317.86
7.4.130.0140.00316.67
7.4.120.0130.00316.53
7.4.110.0070.01016.61
7.4.100.0100.01016.56
7.4.90.0070.01016.48
7.4.80.0170.00719.39
7.4.70.0130.00316.52
7.4.60.0040.01116.59
7.4.50.0000.00416.66
7.4.40.0150.00616.57
7.4.30.0180.00316.49
7.4.10.0030.01414.93
7.4.00.0030.01315.01
7.3.280.0090.00916.31
7.3.270.0110.00917.40
7.3.260.0070.01116.48
7.3.250.0080.01016.40
7.3.240.0090.00616.44
7.3.230.0060.01216.39
7.3.210.0100.00716.29
7.3.200.0070.01419.39
7.3.190.0040.01216.43
7.3.180.0080.00816.41
7.3.170.0050.01116.52
7.3.160.0100.00616.37
7.3.130.0040.01114.93
7.3.120.0030.01614.80
7.3.110.0070.01014.77
7.3.100.0000.01614.73
7.3.90.0070.01014.73
7.3.80.0000.01514.82
7.3.70.0030.00714.68
7.3.60.0050.01414.83
7.3.50.0060.00814.66
7.3.40.0080.00314.58
7.3.30.0090.00914.75
7.3.20.0050.01015.73
7.3.10.0080.00515.82
7.3.00.0100.01016.05
7.2.330.0030.01816.59
7.2.320.0000.01716.76
7.2.310.0060.01616.87
7.2.300.0180.00016.37
7.2.290.0100.01016.46
7.2.260.0110.00715.14
7.2.250.0040.01214.83
7.2.240.0100.00714.80
7.2.230.0030.01015.15
7.2.220.0030.01314.92
7.2.210.0000.01414.70
7.2.200.0030.00915.03
7.2.190.0070.00814.95
7.2.180.0070.00414.89
7.2.170.0100.00815.02
7.2.160.0030.00915.08
7.2.150.0850.00515.96
7.2.140.0090.01215.82
7.2.130.0120.00816.14
7.2.120.0080.00816.03
7.2.110.0090.00516.23
7.2.100.0080.00916.13
7.2.90.0120.01016.20
7.2.80.0120.00716.12
7.2.70.0120.00916.20
7.2.60.0130.00716.34
7.2.50.0090.00916.26
7.2.40.0100.01316.18
7.2.30.0110.00516.23
7.2.20.0070.01116.14
7.2.10.0110.00816.18
7.2.00.0110.00516.03
7.1.330.0030.01015.61
7.1.320.0000.01315.52
7.1.310.0000.00815.73
7.1.300.0090.00514.77
7.1.290.0070.00514.81
7.1.280.0150.00314.67
7.1.270.0090.00714.83
7.1.260.0080.00414.75
7.1.250.0100.00715.02
7.1.240.0110.00814.62
7.1.230.0180.00314.81
7.1.220.0070.01114.63
7.1.210.0130.00914.78
7.1.200.0060.00815.18
7.1.190.0100.00914.85
7.1.180.0100.00314.75
7.1.170.0130.00714.93
7.1.160.0140.00814.61
7.1.150.0290.01014.78
7.1.140.0090.00614.84
7.1.130.0040.01414.70
7.1.120.0140.00614.63
7.1.110.0110.00814.94
7.1.100.0200.00314.90
7.1.90.0110.01414.96
7.1.80.0100.00914.86
7.1.70.0090.00515.66
7.1.60.0100.01316.34
7.1.50.0120.00815.51
7.1.40.0130.00714.88
7.1.30.0170.00514.75
7.1.20.0040.01714.81
7.1.10.0160.00614.68
7.1.00.0020.03417.26
7.0.330.0150.01213.45
7.0.320.0270.00313.47
7.0.310.0230.00613.41
7.0.300.0170.01313.41
7.0.290.0130.01213.55
7.0.280.0230.01113.20
7.0.270.0280.00913.26
7.0.260.0280.00613.52
7.0.250.0170.00713.41
7.0.240.0190.01513.50
7.0.230.0210.00413.61
7.0.220.0140.01813.45
7.0.210.0280.00313.67
7.0.200.0080.01415.19
7.0.190.0120.00913.61
7.0.180.0160.00613.65
7.0.170.0140.01413.64
7.0.160.0230.00013.67
7.0.150.2410.00713.62
7.0.140.0090.03417.88
7.0.130.0190.01313.69
7.0.120.0180.01113.67
7.0.110.0210.00413.39
7.0.100.0180.01213.56
7.0.90.0210.00213.57
7.0.80.0300.00313.48
7.0.70.0210.00913.54
7.0.60.0140.03916.56
7.0.50.0090.03715.83
7.0.40.0240.04016.84
7.0.30.0390.04316.84
7.0.20.0220.04416.86
7.0.10.0140.04417.05
7.0.00.0110.02316.80
5.6.400.0120.01214.23
5.6.390.0160.00013.71
5.6.380.0150.00514.48
5.6.370.0160.00814.08
5.6.360.0170.01314.45
5.6.350.0230.00314.43
5.6.340.0250.00513.93
5.6.330.0250.00414.14
5.6.320.0100.01314.42
5.6.310.0040.01114.18
5.6.300.0160.01314.26
5.6.290.0110.01414.04
5.6.280.0220.01014.54
5.6.270.0130.01114.17
5.6.260.0250.00314.20
5.6.250.0110.00714.41
5.6.240.0190.01114.46
5.6.230.0180.01514.46
5.6.220.0170.00414.35
5.6.210.0140.02317.32
5.6.200.0080.02816.20
5.6.190.0100.04317.57
5.6.180.1820.02117.54
5.6.170.0170.03417.31
5.6.160.0130.04717.43
5.6.150.0090.04416.28
5.6.140.0110.04116.11
5.6.130.0120.04516.20
5.6.120.0080.04717.81
5.6.110.0130.04017.64
5.6.100.0130.02617.54
5.6.90.0100.04517.56
5.6.80.0100.04317.32
5.6.70.0260.03017.34
5.6.60.0170.01314.17
5.6.50.0180.01213.99
5.6.40.0120.01513.93
5.6.30.0130.00414.13
5.6.20.0120.01213.96
5.6.10.0240.00814.16
5.6.00.0060.01114.34
5.5.380.0180.00914.40
5.5.370.0060.01813.95
5.5.360.0190.00414.23
5.5.350.0230.04217.24
5.5.340.0120.02416.25
5.5.330.0120.03417.28
5.5.320.0250.02817.37
5.5.310.0300.03817.13
5.5.300.0080.02816.16
5.5.290.0070.02916.01
5.5.280.0060.02317.46
5.5.270.0080.04717.49
5.5.260.0110.04517.49
5.5.250.0100.02517.33
5.5.240.0230.04417.01
5.5.230.0090.00914.30
5.5.220.0150.00714.10
5.5.210.0130.01714.00
5.5.200.0210.00313.98
5.5.190.0110.00814.17
5.5.180.0150.01014.30
5.5.170.0120.01314.23
5.5.160.0150.00614.22
5.5.150.0060.01314.16
5.5.140.0140.00514.04
5.5.130.0170.00814.29
5.5.120.0150.01114.14
5.5.110.0090.01113.93
5.5.100.0230.01013.99
5.5.90.0150.01114.30
5.5.80.0150.01514.02
5.5.70.0170.00314.10
5.5.60.0220.01013.69
5.5.50.0160.00013.99
5.5.40.0170.00213.91
5.5.30.0140.00413.67
5.5.20.0140.00714.30
5.5.10.0150.00514.27
5.5.00.0130.00813.80
5.4.450.0500.02515.22
5.4.440.0460.03314.98
5.4.430.0100.03015.05
5.4.420.0680.02915.16
5.4.410.0540.03114.93
5.4.400.0580.02515.09
5.4.390.0520.02714.81
5.4.380.0440.03514.89
5.4.370.0530.02914.70
5.4.360.0590.03014.56
5.4.350.0470.03014.71
5.4.340.0510.02914.67
5.4.330.0180.00010.62
5.4.320.0490.03614.76
5.4.310.0460.02914.74
5.4.300.0430.03814.69
5.4.290.0460.03514.69
5.4.280.0600.03314.75
5.4.270.0620.02814.76
5.4.260.0530.02714.67
5.4.250.0630.02814.46
5.4.240.0520.03614.65
5.4.230.0580.02714.71
5.4.220.0600.03314.72
5.4.210.0580.03514.72
5.4.200.0490.02813.69
5.4.190.0430.03314.65
5.4.180.0490.03314.77
5.4.170.0610.03214.77
5.4.160.0420.03714.66
5.4.150.0580.02514.67
5.4.140.0590.03113.64
5.4.130.0510.03313.51
5.4.120.0600.02613.70
5.4.110.0550.02913.51
5.4.100.0550.03213.42
5.4.90.0640.02213.58
5.4.80.0630.02713.52
5.4.70.0700.02713.46
5.4.60.0550.03313.59
5.4.50.0560.04113.46
5.4.40.0670.02813.50
5.4.30.0600.03613.48
5.4.20.0600.03513.40
5.4.10.0530.03213.44
5.4.00.0610.02013.26