3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { final public function trigger() { $result = ( function() { yield 1; yield 2; yield 3; yield 4; yield 5; } ); return $result(); } } $test = new test(); $generator = $test->trigger(); foreach($generator as $value) { echo $value."\n"; }

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.4.20.0100.01019.16
8.4.10.0100.01019.36
8.3.150.0130.00618.45
8.3.140.0070.01117.15
8.3.130.0000.00818.41
8.3.120.0110.00720.91
8.3.110.0070.00420.94
8.3.100.0040.00424.06
8.3.90.0110.00726.77
8.3.80.0070.00416.63
8.3.70.0180.00016.50
8.3.60.0190.00318.27
8.3.50.0110.00318.00
8.3.40.0120.00918.67
8.3.30.0060.00918.54
8.3.20.0080.00019.11
8.3.10.0030.00623.70
8.3.00.0000.00723.57
8.2.270.0070.01117.17
8.2.260.0120.00616.58
8.2.250.0060.00318.96
8.2.240.0030.00617.05
8.2.230.0030.00622.58
8.2.220.0000.01037.54
8.2.210.0080.00026.77
8.2.200.0080.00016.38
8.2.190.0140.00416.58
8.2.180.0060.00916.63
8.2.170.0040.01122.96
8.2.160.0070.00719.01
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.47
8.2.120.0080.00026.35
8.2.110.0080.00020.56
8.2.100.0040.00817.91
8.2.90.0040.00420.59
8.2.80.0060.00318.03
8.2.70.0040.00418.04
8.2.60.0070.00617.88
8.2.50.0090.00018.10
8.2.40.0000.00819.48
8.2.30.0000.00822.41
8.2.20.0040.00418.09
8.2.10.0060.00317.98
8.2.00.0030.00619.48
8.1.310.0170.00018.56
8.1.300.0120.00417.84
8.1.290.0050.00518.88
8.1.280.0170.00325.92
8.1.270.0040.00422.16
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0060.00323.83
8.1.230.0080.00421.04
8.1.220.0050.00317.74
8.1.210.0050.00519.01
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0000.00718.84
8.1.150.0000.00718.80
8.1.140.0040.00419.05
8.1.130.0070.00019.28
8.1.120.0030.00317.44
8.1.110.0060.00317.38
8.1.100.0070.00017.47
8.1.90.0040.00417.44
8.1.80.0020.00517.38
8.1.70.0000.00717.33
8.1.60.0000.00817.47
8.1.50.0080.00317.46
8.1.40.0000.00717.41
8.1.30.0050.00317.65
8.1.20.0000.00817.67
8.1.10.0080.00417.45
8.1.00.0040.00417.37
8.0.300.0040.00420.07
8.0.290.0090.00316.61
8.0.280.0070.00018.43
8.0.270.0030.00317.16
8.0.260.0030.00316.75
8.0.250.0000.00816.93
8.0.240.0030.00316.90
8.0.230.0070.00016.93
8.0.220.0040.00416.90
8.0.210.0000.00816.76
8.0.200.0030.00316.91
8.0.190.0030.00716.84
8.0.180.0040.00416.91
8.0.170.0000.00816.92
8.0.160.0040.00416.92
8.0.150.0030.00616.80
8.0.140.0000.00716.86
8.0.130.0040.00313.34
8.0.120.0040.00416.75
8.0.110.0040.00416.75
8.0.100.0040.00416.74
8.0.90.0080.00016.82
8.0.80.0120.00516.88
8.0.70.0040.00416.93
8.0.60.0080.00016.88
8.0.50.0000.00716.93
8.0.30.0070.01116.96
8.0.20.0090.00917.40
8.0.10.0050.00216.96
8.0.00.0120.00516.72
7.4.330.0000.00615.55
7.4.320.0060.00016.53
7.4.300.0000.00616.59
7.4.290.0060.00316.49
7.4.280.0040.00416.55
7.4.270.0040.00416.39
7.4.260.0000.00716.55
7.4.250.0030.00316.51
7.4.240.0070.00016.59
7.4.230.0000.00716.66
7.4.220.0000.00716.51
7.4.210.0040.00916.50
7.4.200.0030.00316.49
7.4.160.0060.01116.47
7.4.140.0110.01117.86
7.4.130.0030.01416.43
7.4.120.0110.01016.55
7.4.110.0070.01016.56
7.4.100.0070.01016.45
7.4.90.0090.00916.63
7.4.80.0070.01019.39
7.4.70.0130.00316.59
7.4.60.0150.00616.47
7.4.50.0120.00316.65
7.4.40.0110.00816.48
7.4.00.0030.01015.05
7.3.330.0060.00013.07
7.3.320.0030.00313.15
7.3.310.0000.00716.19
7.3.300.0060.00016.23
7.3.290.0040.00416.20
7.3.280.0050.01216.26
7.3.260.0110.01116.39
7.3.240.0070.01216.44
7.3.230.0060.01216.43
7.3.210.0130.00616.29
7.3.200.0110.01116.67
7.3.190.0070.01016.52
7.3.180.0060.01116.67
7.3.170.0100.00716.53
7.3.160.0060.00916.27
7.2.330.0000.01716.68
7.2.320.0000.01716.34
7.2.310.0000.02116.73
7.2.300.0110.00816.77
7.2.290.0140.00416.55
7.2.80.1860.00714.54
7.2.70.1420.01014.88
7.2.60.1780.00614.98
7.2.50.1880.00714.85
7.2.40.1720.01014.93
7.2.30.1440.00815.20
7.2.20.1580.01015.01
7.2.10.1490.00814.93
7.2.00.1210.00815.03
7.1.200.0070.00415.64
7.1.190.1340.01213.80
7.1.180.1650.00613.71
7.1.170.1580.00813.69
7.1.160.1510.00813.47
7.1.150.1500.01013.76
7.1.140.1290.01013.58
7.1.130.1360.01013.75
7.1.120.1340.00613.71
7.1.110.1310.01313.95
7.1.100.1390.00313.85
7.1.90.1990.01113.76
7.1.80.1760.00713.78
7.1.70.1500.00813.93
7.1.60.2040.00531.72
7.1.50.0840.00831.73
7.1.40.1900.01031.72
7.1.30.2580.00831.55
7.1.20.2080.01031.79
7.1.10.0990.00213.67
7.1.00.1160.00813.75
7.0.310.1240.00313.24
7.0.300.1500.00613.44
7.0.290.0780.00613.48
7.0.270.1130.01013.31
7.0.260.0850.00913.52
7.0.250.0880.01713.42
7.0.240.0540.01513.55
7.0.230.0870.01113.50
7.0.220.0840.00713.34
7.0.210.1020.01013.51
7.0.200.0590.01013.51
7.0.190.0620.00913.69
7.0.180.0880.00313.56
7.0.170.0870.00713.61
7.0.160.0640.00613.58
7.0.150.0520.01113.23
7.0.140.0460.01013.56
7.0.130.0670.00913.67
7.0.120.0550.01113.65
7.0.110.0390.00713.71
7.0.100.0430.01013.52
7.0.90.0380.01013.39
7.0.80.0640.00413.68
7.0.70.0390.00713.48
7.0.60.0440.00613.46
7.0.50.0810.00013.53
7.0.40.0420.00813.34
7.0.30.0550.00313.54
7.0.20.0510.01013.43
7.0.10.0580.00613.62
7.0.00.0500.01013.37
5.6.300.0120.00613.96
5.6.290.0150.00514.30
5.6.280.0140.00614.53
5.6.270.0120.00814.41
5.6.260.0140.00614.07
5.6.250.0150.00314.34
5.6.240.0160.00514.27
5.6.230.0190.00414.19
5.6.220.0190.00314.45
5.6.210.0130.00314.04
5.6.200.0130.00714.25
5.6.190.0080.01314.30
5.6.180.0190.00314.45
5.6.170.0140.01114.19
5.6.160.0110.01114.38
5.6.150.0090.00914.07
5.6.140.0080.01614.48
5.6.130.0150.00514.43
5.6.120.0160.00414.10
5.6.110.0100.01014.67
5.6.100.0120.00614.26
5.6.90.0090.01214.27
5.6.80.0160.00314.46
5.6.70.0150.00313.95
5.6.60.0130.00414.23
5.6.50.0050.01414.10
5.6.40.0170.00314.13
5.6.30.0130.00714.27
5.6.20.0140.00514.30
5.6.10.0120.00814.43
5.6.00.0160.00314.19
5.5.380.0070.01311.23
5.5.370.0110.00711.33
5.5.360.0100.00611.27
5.5.350.0150.00311.13
5.5.340.0070.01310.88
5.5.330.0110.00411.06
5.5.320.0060.01110.91
5.5.310.0140.00311.22
5.5.300.0070.00711.09
5.5.290.0090.00911.20
5.5.280.0070.00710.88
5.5.270.0100.00410.98
5.5.260.0130.00011.43
5.5.250.0140.00011.07
5.5.240.0040.01111.27
5.5.230.0000.01311.23
5.5.220.0100.00211.05
5.5.210.0120.00411.15
5.5.200.0110.00411.09
5.5.190.0090.00611.14
5.5.180.0090.00910.70
5.5.160.0160.00011.26
5.5.150.0150.00311.03
5.5.140.0110.00511.22
5.5.130.0070.00710.96
5.5.120.0130.00611.05
5.5.110.0140.00311.24
5.5.100.0080.00811.11
5.5.90.0140.01410.97
5.5.80.0130.00311.14
5.5.70.0070.00711.00
5.5.60.0060.01211.18
5.5.50.0210.00011.14
5.5.40.0070.00711.16
5.5.30.0150.00011.20
5.5.20.0160.00011.22
5.5.10.0150.00211.21
5.5.00.0140.00311.09
5.4.450.0070.01010.72
5.4.440.0070.00710.52
5.4.430.0050.01010.90
5.4.420.0070.00710.90
5.4.410.0110.00410.81
5.4.400.0070.01010.71
5.4.390.0070.00710.66
5.4.380.0090.00410.72
5.4.370.0030.01610.57
5.4.360.0110.00710.56
5.4.350.0090.00410.82
5.4.340.0110.00310.87
5.4.320.0110.00310.67
5.4.310.0120.00310.70
5.4.300.0080.00610.85
5.4.290.0040.00910.75
5.4.280.0040.01110.74
5.4.270.0110.00610.55
5.4.260.0100.00810.80
5.4.250.0090.00810.68
5.4.240.0060.00910.46
5.4.230.0050.01010.91
5.4.220.0070.00710.84
5.4.210.0070.00710.82
5.4.200.0090.00610.66
5.4.190.0030.01310.69
5.4.180.0120.00810.37
5.4.170.0110.00410.65
5.4.160.0120.00410.76
5.4.150.0110.00610.75
5.4.140.0110.00410.80
5.4.130.0090.00610.80
5.4.120.0150.00010.98
5.4.110.0120.00610.85
5.4.100.0120.00411.13
5.4.90.0150.00310.83
5.4.80.0120.00410.88
5.4.70.0100.00310.81
5.4.60.0000.01810.51
5.4.50.0050.01110.81
5.4.40.0120.00310.92
5.4.30.0120.00410.77
5.4.20.0110.00510.84
5.4.10.0140.00310.59
5.4.00.0130.00410.50
5.3.290.0100.00510.13
5.3.280.0090.00610.19
5.3.270.0100.00710.33
5.3.260.0100.00610.29
5.3.250.0070.01010.25
5.3.240.0060.01010.21
5.3.230.0050.01110.01
5.3.220.0190.00010.01
5.3.210.0120.00410.20
5.3.200.0120.00510.06
5.3.190.0110.00410.09
5.3.180.0160.00010.41
5.3.170.0090.00610.38
5.3.160.0120.00310.41
5.3.150.0130.00410.19
5.3.140.0000.01410.13
5.3.130.0080.00810.11
5.3.120.0070.00710.42
5.3.110.0040.01310.39
5.3.100.0120.00410.18
5.3.90.0140.00310.24
5.3.80.0120.00210.24
5.3.70.0120.00210.12
5.3.60.0140.00010.30
5.3.50.0100.00710.13
5.3.40.0100.00810.33
5.3.30.0120.00410.21
5.3.20.0090.00310.21
5.3.10.0130.0009.84
5.3.00.0090.00510.02
5.2.170.0040.0079.07
5.2.160.0040.0089.32
5.2.150.0060.0069.31
5.2.140.0060.0069.35
5.2.130.0050.0079.13
5.2.120.0030.0079.34
5.2.110.0080.0039.27
5.2.100.0110.0009.00
5.2.90.0060.0069.23
5.2.80.0090.0039.18
5.2.70.0040.0079.18
5.2.60.0080.0048.88
5.2.50.0070.0039.29
5.2.40.0060.0069.05
5.2.30.0030.0088.89
5.2.20.0080.0048.84
5.2.10.0100.0039.04
5.2.00.0140.0008.84
5.1.60.0090.0038.84
5.1.50.0080.0048.84
5.1.40.0050.0048.84
5.1.30.0000.0118.84
5.1.20.0090.0038.84
5.1.10.0060.0038.84
5.1.00.0080.0058.84
5.0.50.0030.0058.84
5.0.40.0040.0048.84
5.0.30.0060.0028.84
5.0.20.0060.0038.84
5.0.10.0040.0048.84
5.0.00.0070.0008.84
4.4.90.0060.0008.84
4.4.80.0080.0008.84
4.4.70.0060.0028.84
4.4.60.0000.0088.84
4.4.50.0000.0088.84
4.4.40.0050.0028.84
4.4.30.0040.0048.84
4.4.20.0030.0068.84
4.4.10.0000.0078.84
4.4.00.0040.0048.84
4.3.110.0030.0038.84
4.3.100.0000.0068.84
4.3.90.0070.0008.84
4.3.80.0000.0078.84
4.3.70.0070.0008.84
4.3.60.0020.0048.84
4.3.50.0000.0078.84
4.3.40.0000.0088.84
4.3.30.0030.0038.84
4.3.20.0000.0068.84
4.3.10.0030.0038.84
4.3.00.0000.0088.84

preferences:
73.94 ms | 403 KiB | 5 Q