3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generator = (static function () { yield from [1,2,3]; })(); $generator->next(); $generator->next(); $generator->rewind(); echo $generator->current(); # 3
based on 71sgW

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.20.0120.00816.97
8.0.00.0140.00716.74
7.4.130.0150.00716.55
7.4.120.0150.00916.48
7.4.110.0070.01016.50
7.4.100.0080.01116.47
7.4.90.0100.01116.47
7.4.80.0130.00416.52
7.4.70.0120.00616.37
7.4.60.0130.00416.49
7.4.50.0080.00916.42
7.4.40.0110.00716.40
7.4.30.0090.00916.41
7.4.20.0110.00816.40
7.4.10.0130.00516.50
7.4.00.0120.00716.58
7.3.260.0070.01016.63
7.3.250.0160.00316.47
7.3.240.0100.00716.21
7.3.230.0110.00716.30
7.3.220.0090.00916.43
7.3.210.0080.00916.16
7.3.200.0080.00816.36
7.3.190.0090.00616.36
7.3.180.0090.00816.18
7.3.170.0100.00716.23
7.3.160.0120.00716.34
7.3.150.0110.00716.24
7.3.140.0080.01016.35
7.3.130.0110.00816.39
7.3.120.0100.00916.33
7.3.110.0060.01116.32
7.3.100.0090.01016.49
7.3.90.0090.00816.27
7.3.80.0080.01016.33
7.3.70.0100.00916.34
7.3.60.0120.00516.39
7.3.50.0110.00516.29
7.3.40.0080.00916.23
7.3.30.0110.00716.25
7.3.20.0090.01116.32
7.3.10.0130.00616.25
7.3.00.0090.00816.30
7.2.340.0210.00816.46
7.2.330.0120.00716.69
7.2.320.0110.00816.51
7.2.310.0060.01316.63
7.2.300.0070.01116.65
7.2.290.0140.01116.45
7.2.280.0090.01016.67
7.2.270.0110.00916.76
7.2.260.0050.01316.63
7.2.250.0130.00716.40
7.2.240.0080.01316.52
7.2.230.0120.00816.73
7.2.220.0120.00916.52
7.2.210.0140.00816.54
7.2.200.0120.01216.65
7.2.190.0120.01016.61
7.2.180.0130.00716.66
7.2.170.0140.01016.59
7.2.160.0140.00916.52
7.2.150.0120.01416.66
7.2.140.0210.00716.64
7.2.130.0130.00916.68
7.2.120.0140.00916.67
7.2.110.0110.01016.65
7.2.100.0140.01016.64
7.2.90.0130.01116.57
7.2.80.0140.00816.68
7.2.70.0080.01416.63
7.2.60.0130.01016.66
7.2.50.0150.01016.70
7.2.40.0140.01116.64
7.2.30.0150.00716.66
7.2.20.0170.01016.66
7.2.10.0130.00916.65
7.2.00.0200.00716.67
7.1.330.0110.00915.64
7.1.320.0160.00515.55
7.1.310.0090.01515.35
7.1.300.0140.00315.41
7.1.290.0100.00715.34
7.1.280.0040.01615.38
7.1.270.0140.00615.52
7.1.260.0160.00315.37
7.1.250.0180.00415.44
7.1.240.0600.00615.54
7.1.230.0130.00815.38
7.1.220.0130.01315.39
7.1.210.0200.01015.40
7.1.200.0180.00615.32
7.1.190.0280.00415.36
7.1.180.0190.01215.43
7.1.170.0210.00615.41
7.1.160.0190.01015.47
7.1.150.0540.00815.49
7.1.140.0130.01315.39
7.1.130.0120.01215.38
7.1.120.0120.01215.28
7.1.110.0170.01115.37
7.1.100.0220.00915.43
7.1.90.0050.02115.58
7.1.80.0160.01015.45
7.1.70.0160.00815.36
7.1.60.0270.00315.54
7.1.50.0190.00715.36
7.1.40.0260.01115.37
7.1.30.0190.01215.37
7.1.20.0180.00815.43
7.1.10.0160.01615.63
7.1.00.0180.01415.47
7.0.330.0160.00215.22
7.0.320.0190.00715.08
7.0.310.0130.01015.09
7.0.300.0160.00815.06
7.0.290.0180.00915.07
7.0.280.0160.00815.12
7.0.270.0170.00815.00
7.0.260.0140.01015.14
7.0.250.0140.01115.22
7.0.240.0230.00315.26
7.0.230.0170.00915.20
7.0.220.0200.00615.19
7.0.210.0140.01415.27
7.0.200.0440.00915.09
7.0.190.0160.01315.12
7.0.180.0200.00915.13
7.0.170.0160.00915.21
7.0.160.0350.00015.17
7.0.150.0250.00315.09
7.0.140.0220.00815.14
7.0.130.0210.00515.26
7.0.120.0180.00415.05
7.0.110.0260.00015.04
7.0.100.0160.00815.27
7.0.90.0110.01515.29
7.0.80.0130.01415.08
7.0.70.0210.00815.11
7.0.60.0210.00915.09
7.0.50.0620.00714.77
7.0.40.0280.00815.19
7.0.30.0230.01315.19
7.0.20.0200.01015.17
7.0.10.0210.01215.00
7.0.00.0230.00915.04
5.6.400.0160.00315.55
5.6.390.0090.00915.43
5.6.380.0100.01715.65
5.6.370.0160.01015.87
5.6.360.0240.00515.64
5.6.350.0140.01515.53
5.6.340.0250.00015.71
5.6.330.0240.00315.79
5.6.320.0250.00415.77
5.6.310.0140.01415.89
5.6.300.0180.01315.68
5.6.290.0260.00715.84
5.6.280.0220.00415.74
5.6.270.0160.01115.72
5.6.260.0230.00315.77
5.6.250.0130.01315.58
5.6.240.0150.01215.74
5.6.230.0210.00715.66
5.6.220.0190.01115.62
5.6.210.0120.02215.66
5.6.200.0240.00715.55
5.6.190.0170.01415.73
5.6.180.0180.01915.53
5.6.170.0160.01615.53
5.6.160.0260.01115.71
5.6.150.0180.01315.73
5.6.140.0240.01015.76
5.6.130.0270.00615.45
5.6.120.0180.01215.57
5.6.110.0180.01015.80
5.6.100.0270.00215.51
5.6.90.0230.01715.79
5.6.80.0210.01015.57
5.6.70.0230.00615.49
5.6.60.0160.01315.56
5.6.50.0230.01115.62
5.6.40.0210.01415.65
5.6.30.0150.01515.46
5.6.20.0250.01115.49
5.6.10.0370.00815.71
5.6.00.0260.01015.21
5.5.380.0220.00315.64
5.5.370.0090.01315.82
5.5.360.0180.01415.64
5.5.350.0240.00815.64
5.5.340.0100.01315.53
5.5.330.0180.01115.51
5.5.320.0130.01115.25
5.5.310.0110.01215.49
5.5.300.0110.01515.48
5.5.290.0250.00315.41
5.5.280.0130.01015.38
5.5.270.0080.01515.32
5.5.260.0060.01615.45
5.5.250.0100.01315.34
5.5.240.0140.00915.38
5.5.230.0210.00515.34
5.5.220.0110.01415.23
5.5.210.0160.01015.36
5.5.200.0140.01415.40
5.5.190.0110.01115.45
5.5.180.0160.00815.50
5.5.170.0160.01615.34
5.5.160.0150.00715.36
5.5.150.0160.01215.48
5.5.140.0160.00715.55
5.5.130.0210.00715.48
5.5.120.0150.01115.56
5.5.110.0120.01215.52
5.5.100.0170.00715.45
5.5.90.0140.00915.29
5.5.80.0150.00715.43
5.5.70.0140.00915.37
5.5.60.0160.00415.45
5.5.50.0160.00815.15
5.5.40.0200.00715.24
5.5.30.0200.00315.56
5.5.20.0110.01815.53
5.5.10.0190.01015.59
5.5.00.0210.00915.39
5.4.450.0180.00612.29
5.4.440.0170.00612.57
5.4.430.0180.00612.34
5.4.420.0210.00512.53
5.4.410.0210.00412.63
5.4.400.0180.00512.34
5.4.390.0160.00712.33
5.4.380.0200.00312.50
5.4.370.0180.00912.42
5.4.360.0150.00912.23
5.4.350.0200.01312.43
5.4.340.0110.01712.20
5.4.330.0160.01612.55
5.4.320.0110.01212.32
5.4.310.0160.01112.48
5.4.300.0150.01012.21
5.4.290.0150.00712.43
5.4.280.0210.00312.31
5.4.270.0180.00712.28
5.4.260.0170.00812.53
5.4.250.0150.00812.24
5.4.240.0190.00712.45
5.4.230.0150.00712.55
5.4.220.0110.01112.43
5.4.210.0200.00312.27
5.4.200.0160.00812.21
5.4.190.0150.00712.30
5.4.180.0240.00012.32
5.4.170.0160.01012.36
5.4.160.0120.01212.41
5.4.150.0100.01412.19
5.4.140.0160.00612.39
5.4.130.0170.00712.36
5.4.120.0130.01312.41
5.4.110.0130.01012.55
5.4.100.0180.01112.34
5.4.90.0080.01612.33
5.4.80.0240.00012.37
5.4.70.0130.01012.40
5.4.60.0160.00612.30
5.4.50.0130.00912.47
5.4.40.0120.00912.39
5.4.30.0270.00312.50
5.4.20.0150.01012.25
5.4.10.0150.01112.46
5.4.00.0170.01112.31
5.3.290.0140.01112.70
5.3.280.0160.01212.68
5.3.270.0200.00312.77
5.3.260.0140.01012.65
5.3.250.0180.00612.65
5.3.240.0180.00412.51
5.3.230.0160.00912.63
5.3.220.0130.01012.75
5.3.210.0270.00912.72
5.3.200.0160.00812.83
5.3.190.0090.01412.67
5.3.180.0170.00712.72
5.3.170.0200.00313.06
5.3.160.0130.01312.86
5.3.150.0120.01212.77
5.3.140.0130.01012.79
5.3.130.0170.01012.83
5.3.120.0200.00412.76
5.3.110.0160.01312.75
5.3.100.0130.00812.82
5.3.90.0090.01412.75
5.3.80.0150.00612.92
5.3.70.0220.00012.68
5.3.60.0140.00912.70
5.3.50.0140.00912.75
5.3.40.0090.01212.71
5.3.30.0130.00812.60
5.3.20.0170.00312.68
5.3.10.0110.01112.48
5.3.00.0150.00612.51
5.2.170.0090.00911.84
5.2.160.0140.00511.84
5.2.150.0150.00311.74
5.2.140.0050.01411.76
5.2.130.0090.00911.67
5.2.120.0070.01111.71
5.2.110.0110.00711.71
5.2.100.0040.01511.75
5.2.90.0100.01011.79
5.2.80.0130.01011.72
5.2.70.0110.00811.69
5.2.60.0140.00311.80
5.2.50.0190.00311.70
5.2.40.0080.01111.79
5.2.30.0120.00911.65
5.2.20.0120.00611.65
5.2.10.0090.00911.65
5.2.00.0130.00611.65
5.1.60.0150.00411.65
5.1.50.0150.00411.65
5.1.40.0120.00411.65
5.1.30.0140.00411.65
5.1.20.0110.00511.65
5.1.10.0080.00811.65
5.1.00.0130.00311.65
5.0.50.0100.00511.65
5.0.40.0110.00711.65
5.0.30.0080.00511.65
5.0.20.0090.00411.65
5.0.10.0130.00011.65
5.0.00.0060.00611.65
4.4.90.0060.00311.65
4.4.80.0070.00211.65
4.4.70.0100.00011.65
4.4.60.0060.00311.65
4.4.50.0090.00011.65
4.4.40.0000.00911.65
4.4.30.0040.00411.65
4.4.20.0060.00311.65
4.4.10.0090.00011.65
4.4.00.0090.00211.65
4.3.110.0040.00411.65
4.3.100.0030.00511.65
4.3.90.0040.00411.65
4.3.80.0040.00411.65
4.3.70.0040.00511.65
4.3.60.0090.00011.65
4.3.50.0050.00511.65
4.3.40.0060.00311.65
4.3.30.0030.00411.65
4.3.20.0070.00011.65
4.3.10.0030.00411.65
4.3.00.0000.00711.65