3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen(): Generator { yield fn($a) => 'b' => 'c'; } gen(); foreach(gen() as $key => $value) { var_dump($key, $value); }
based on sbeOf

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.0120.00516.89
8.0.20.0120.00616.90
8.0.10.0090.00716.94
8.0.00.0100.00916.99
7.4.160.0080.01216.64
7.4.150.0040.01216.41
7.4.140.0100.01016.46
7.4.130.0090.01016.52
7.4.120.0060.01416.46
7.4.110.0100.00816.55
7.4.100.0090.01216.46
7.4.90.0110.00616.45
7.4.80.0110.00916.48
7.4.70.0090.00516.62
7.4.60.0050.00916.45
7.4.50.0050.01316.33
7.4.40.0090.00516.38
7.4.30.0070.00916.54
7.4.20.0100.00616.52
7.4.10.0070.00916.55
7.4.00.0040.01016.55
7.3.270.0070.00716.20
7.3.260.0090.00616.24
7.3.250.0070.00916.16
7.3.240.0080.01116.16
7.3.230.0060.01016.17
7.3.220.0080.00916.15
7.3.210.0110.00516.11
7.3.200.0070.00816.10
7.3.190.0030.01016.06
7.3.180.0070.01116.06
7.3.170.0100.00616.09
7.3.160.0020.01316.13
7.3.150.0060.00716.11
7.3.140.0070.00716.15
7.3.130.0090.00516.11
7.3.120.0050.01116.11
7.3.110.0080.00916.02
7.3.100.0110.00616.03
7.3.90.0110.00716.36
7.3.80.0100.00516.15
7.3.70.0080.00816.19
7.3.60.0120.00316.24
7.3.50.0040.00916.24
7.3.40.0110.00616.21
7.3.30.0080.00716.24
7.3.20.0110.00516.26
7.3.10.0070.00716.21
7.3.00.0070.00816.14
7.2.340.0150.01916.13
7.2.330.0170.00916.06
7.2.320.0130.01316.13
7.2.310.0150.00916.08
7.2.300.0220.00416.06
7.2.290.0320.00316.06
7.2.280.0100.01416.16
7.2.270.0110.01616.12
7.2.260.0100.01516.18
7.2.250.0200.01416.11
7.2.240.0190.01716.16
7.2.230.0190.01315.99
7.2.220.0190.01316.05
7.2.210.0180.00916.07
7.2.200.0170.00916.28
7.2.190.0250.00716.26
7.2.180.0150.01316.28
7.2.170.0260.00916.24
7.2.160.0220.00816.34
7.2.150.0100.01616.34
7.2.140.0220.00416.39
7.2.130.0150.01816.49
7.2.120.0170.01116.38
7.2.110.0170.01016.36
7.2.100.0810.01716.44
7.2.90.0190.00816.27
7.2.80.0240.00316.23
7.2.70.0110.01516.38
7.2.60.0190.01316.38
7.2.50.0160.01716.28
7.2.40.0180.01116.38
7.2.30.0200.00716.35
7.2.20.0400.00416.44
7.2.10.0190.01416.43
7.2.00.0200.01216.32
7.1.330.0550.00615.38
7.1.320.0170.00915.23
7.1.310.0170.01015.39
7.1.300.0170.00615.25
7.1.290.0230.00915.37
7.1.280.0280.00615.32
7.1.270.0200.01015.33
7.1.260.0180.00915.17
7.1.250.0630.00615.32
7.1.240.0260.00415.16
7.1.230.0220.01115.21
7.1.220.0220.00615.25
7.1.210.0210.00815.23
7.1.200.0150.00915.24
7.1.190.0190.00615.27
7.1.180.0270.00415.17
7.1.170.0190.01015.18
7.1.160.0150.01115.15
7.1.150.0220.00315.22
7.1.140.0170.01015.14
7.1.130.0260.00715.26
7.1.120.0210.01015.21
7.1.110.0310.00315.20
7.1.100.0370.00815.12
7.1.90.0190.01215.04
7.1.80.0180.00915.17
7.1.70.0120.01215.03
7.1.60.0150.01115.21
7.1.50.0160.01315.25
7.1.40.0270.00915.32
7.1.30.0180.00915.22
7.1.20.0180.00915.14
7.1.10.0200.00415.06
7.1.00.0180.01115.17
7.0.330.0180.01215.01
7.0.320.0160.01015.00
7.0.310.0160.00714.90
7.0.300.0230.00514.99
7.0.290.0190.00514.93
7.0.280.0190.01314.84
7.0.270.0200.01014.89
7.0.260.0220.00714.98
7.0.250.0170.01115.09
7.0.240.0120.01515.15
7.0.230.0150.01315.11
7.0.220.0180.00915.06
7.0.210.0130.01014.95
7.0.200.0130.00914.99
7.0.190.0330.01115.07
7.0.180.0130.01314.95
7.0.170.0150.00815.17
7.0.160.0170.00614.95
7.0.150.0260.00315.07
7.0.140.0140.01014.98
7.0.130.0180.00914.93
7.0.120.0210.00515.14
7.0.110.0060.01815.04
7.0.100.0150.01115.00
7.0.90.0180.01114.76
7.0.80.0200.00414.79
7.0.70.0170.00714.93
7.0.60.0610.00014.95
7.0.50.0120.01214.90
7.0.40.0160.01215.02
7.0.30.0200.00415.04
7.0.20.0600.01014.92
7.0.10.0160.01015.02
7.0.00.0200.00814.98
5.6.400.0140.01115.57
5.6.390.0110.01915.75
5.6.380.0210.00715.64
5.6.370.0180.01515.59
5.6.360.0180.01115.64
5.6.350.0180.00815.61
5.6.340.0190.01015.61
5.6.330.0250.00415.61
5.6.320.0210.01115.62
5.6.310.0120.01215.63
5.6.300.0190.01015.63
5.6.290.0190.00515.73
5.6.280.0160.01215.63
5.6.270.0140.01815.64
5.6.260.0080.01615.63
5.6.250.0270.00315.54
5.6.240.0150.01015.64
5.6.230.0130.01015.70
5.6.220.0180.00915.84
5.6.210.0200.00915.78
5.6.200.0240.00015.80
5.6.190.0190.01015.74
5.6.180.0180.01715.90
5.6.170.0180.01215.85
5.6.160.0150.01515.70
5.6.150.0320.00615.65
5.6.140.0230.00315.65
5.6.130.0150.01915.68
5.6.120.0150.01515.79
5.6.110.0170.00915.58
5.6.100.0200.00415.64
5.6.90.0100.01815.46
5.6.80.0210.00715.64
5.6.70.0130.01315.59
5.6.60.0230.00415.66
5.6.50.0110.01515.48
5.6.40.0160.01315.77
5.6.30.0160.00815.51
5.6.20.0140.00915.49
5.6.10.0140.01015.70
5.6.00.0170.01015.45
5.5.380.0190.00915.71
5.5.370.0170.01015.64
5.5.360.0070.01715.44
5.5.350.0160.01115.44
5.5.340.0120.01215.50
5.5.330.0120.01215.50
5.5.320.0180.01415.61
5.5.310.0130.01715.53
5.5.300.0190.01015.45
5.5.290.0220.01315.48
5.5.280.0110.01415.46
5.5.270.0190.00815.54
5.5.260.0140.01515.48
5.5.250.0140.01515.56
5.5.240.0150.01515.55
5.5.230.0230.00715.73
5.5.220.0210.01015.75
5.5.210.0150.01115.52
5.5.200.0180.00615.46
5.5.190.0150.00815.51
5.5.180.0150.00915.43
5.5.170.0180.00515.37
5.5.160.0140.01015.41
5.5.150.0190.00415.40
5.5.140.0220.00715.25
5.5.130.0210.00515.27
5.5.120.0180.00715.33
5.5.110.0180.00615.31
5.5.100.0160.00615.52
5.5.90.0170.01015.55
5.5.80.0200.00715.50
5.5.70.0110.01115.49
5.5.60.0170.00615.68
5.5.50.0150.01215.49
5.5.40.0240.00615.53
5.5.30.0220.00615.54
5.5.20.0130.01115.51
5.5.10.0220.00515.50
5.5.00.0100.02115.43
5.4.450.0110.01112.49
5.4.440.0120.00712.50
5.4.430.0120.00612.41
5.4.420.0270.00312.49
5.4.410.0130.00912.37
5.4.400.0090.01312.36
5.4.390.0130.00712.43
5.4.380.0120.01212.43
5.4.370.0120.00612.31
5.4.360.0120.00612.39
5.4.350.0110.00712.41
5.4.340.0170.00012.43
5.4.330.0110.00712.36
5.4.320.0130.00512.45
5.4.310.0110.01112.45
5.4.300.0150.00312.38
5.4.290.0090.00712.45
5.4.280.0080.00812.38
5.4.270.0120.00612.48
5.4.260.0160.00812.25
5.4.250.0200.00312.32
5.4.240.0160.00312.51
5.4.230.0040.01312.25
5.4.220.0180.00312.17
5.4.210.0150.00512.17
5.4.200.0220.00012.24
5.4.190.0040.01312.22
5.4.180.0210.00412.11
5.4.170.0130.01112.29
5.4.160.0140.01112.29
5.4.150.0180.00012.27
5.4.140.0160.01112.32
5.4.130.0100.01112.57
5.4.120.0180.00012.56
5.4.110.0130.01012.48
5.4.100.0300.00312.37
5.4.90.0120.00812.43
5.4.80.0070.01812.52
5.4.70.0170.00612.55
5.4.60.0150.00312.45
5.4.50.0160.00312.35
5.4.40.0170.00812.41
5.4.30.0120.00812.38
5.4.20.0090.01312.56
5.4.10.0110.01312.48
5.4.00.0180.00612.43
5.3.290.0130.01312.91
5.3.280.0110.00912.64
5.3.270.0150.00912.73
5.3.260.0150.00912.99
5.3.250.0160.01012.71
5.3.240.0230.00312.66
5.3.230.0100.01012.65
5.3.220.0120.00812.83
5.3.210.0200.00312.79
5.3.200.0140.01012.94
5.3.190.0090.01512.84
5.3.180.0120.00813.09
5.3.170.0110.01413.13
5.3.160.0110.01212.97
5.3.150.0160.00812.86
5.3.140.0150.00912.91
5.3.130.0190.01012.85
5.3.120.0150.00812.77
5.3.110.0110.01112.81
5.3.100.0250.00012.79
5.3.90.0130.01312.84
5.3.80.0080.01112.71
5.3.70.0140.00712.73
5.3.60.0120.01212.76
5.3.50.0160.00612.69
5.3.40.0270.00812.87
5.3.30.0130.01312.71
5.3.20.0180.00612.75
5.3.10.0080.01212.62
5.3.00.0150.00512.48
5.2.170.0050.01511.93
5.2.160.0080.00811.77
5.2.150.0100.00711.79
5.2.140.0100.00711.85
5.2.130.0160.00411.88
5.2.120.0040.01211.86
5.2.110.0120.00611.74
5.2.100.0140.00211.90
5.2.90.0100.00911.85
5.2.80.0060.01211.66
5.2.70.0180.01311.95
5.2.60.0160.00511.63
5.2.50.0180.00311.80
5.2.40.0080.00811.75
5.2.30.0110.00511.76
5.2.20.0060.01111.66
5.2.10.0330.00711.57
5.2.00.0080.01111.37
5.1.60.0150.00311.37
5.1.50.0150.00411.37
5.1.40.0110.00411.37
5.1.30.0070.01011.37
5.1.20.0140.00311.37
5.1.10.0080.00811.37
5.1.00.0150.00011.37
5.0.50.0060.00611.37
5.0.40.0120.00011.37
5.0.30.0110.00011.37
5.0.20.0000.01111.37
5.0.10.0110.00011.37
5.0.00.0120.00211.37
4.4.90.0070.00411.37
4.4.80.0110.00011.37
4.4.70.0040.00411.37
4.4.60.0030.00311.37
4.4.50.0070.00011.37
4.4.40.0030.00711.37
4.4.30.0090.00011.37
4.4.20.0070.00311.37
4.4.10.0060.00311.37
4.4.00.0030.00311.37
4.3.110.0060.00011.37
4.3.100.0000.00711.37
4.3.90.0070.00011.37
4.3.80.0030.00611.37
4.3.70.0050.00211.37
4.3.60.0000.00711.37
4.3.50.0000.00711.37
4.3.40.0030.00311.37
4.3.30.0060.00011.37
4.3.20.0060.00011.37
4.3.10.0060.00011.37
4.3.00.0030.00511.37