3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_ints($n){ foreach ( range(0,$n-1) as $number) { yield $number; } } $gen = generate_ints(13); // iterable object can be used in foreach foreach ($gen as $g) { echo $g; }

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.01018.06
8.3.50.0140.00621.14
8.3.40.0150.00018.84
8.3.30.0030.01020.36
8.3.20.0040.00420.48
8.3.10.0080.00021.01
8.3.00.0000.00723.61
8.2.180.0190.00016.32
8.2.170.0070.00722.96
8.2.160.0070.00720.30
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00021.18
8.2.110.0000.00920.56
8.2.100.0090.00317.72
8.2.90.0080.00019.27
8.2.80.0000.00717.97
8.2.70.0070.00417.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0050.00318.16
8.2.30.0030.00619.44
8.2.20.0000.00817.64
8.2.10.0040.00417.61
8.2.00.0020.00517.66
8.1.280.0150.00425.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.84
8.1.230.0060.00620.83
8.1.220.0040.00418.77
8.1.210.0080.00018.95
8.1.200.0040.00417.36
8.1.190.0080.00017.53
8.1.180.0040.00418.10
8.1.170.0030.00618.64
8.1.160.0040.00418.86
8.1.150.0030.00518.55
8.1.140.0000.00717.50
8.1.130.0040.00417.45
8.1.120.0040.00417.36
8.1.110.0040.00417.41
8.1.100.0030.00517.47
8.1.90.0000.00717.42
8.1.80.0040.00417.44
8.1.70.0000.00717.46
8.1.60.0060.00617.63
8.1.50.0080.00017.38
8.1.40.0030.00617.44
8.1.30.0000.00917.65
8.1.20.0030.00517.66
8.1.10.0040.00417.38
8.1.00.0040.00417.52
8.0.300.0070.00019.93
8.0.290.0030.00617.05
8.0.280.0050.00318.47
8.0.270.0070.00017.25
8.0.260.0060.00016.82
8.0.250.0040.00416.95
8.0.240.0040.00416.97
8.0.230.0000.00716.88
8.0.220.0030.00316.93
8.0.210.0000.00616.88
8.0.200.0030.00317.02
8.0.190.0000.00716.97
8.0.180.0040.00416.90
8.0.170.0000.00816.94
8.0.160.0030.00316.88
8.0.150.0040.00416.95
8.0.140.0000.00716.87
8.0.130.0000.00613.25
8.0.120.0000.00816.85
8.0.110.0040.00416.85
8.0.100.0070.00016.74
8.0.90.0040.00416.96
8.0.80.0170.00316.90
8.0.70.0040.00416.83
8.0.60.0030.00516.87
8.0.50.0070.00016.73
8.0.30.0130.00617.21
8.0.20.0120.00617.42
8.0.10.0000.00717.05
8.0.00.0120.00616.75
7.4.330.0000.00415.05
7.4.320.0030.00616.64
7.4.300.0060.00016.47
7.4.290.0000.00716.46
7.4.280.0030.00316.52
7.4.270.0000.00716.53
7.4.260.0000.00513.29
7.4.250.0000.00716.37
7.4.240.0020.00516.48
7.4.230.0000.00716.50
7.4.220.0090.01816.49
7.4.210.0080.00616.56
7.4.200.0000.00816.58
7.4.190.0080.00016.55
7.4.160.0160.00016.50
7.4.150.0160.00317.40
7.4.140.0100.00717.86
7.4.130.0120.00616.34
7.4.120.0110.00516.53
7.4.110.0030.01416.38
7.4.100.0030.01416.53
7.4.90.0110.00716.44
7.4.80.0070.01319.39
7.4.70.0030.01316.57
7.4.60.0040.01416.42
7.4.50.0030.00616.53
7.4.40.0060.00922.77
7.4.30.0060.01216.45
7.4.00.0090.00814.80
7.3.330.0060.00013.17
7.3.320.0000.00613.37
7.3.310.0030.00316.23
7.3.300.0000.00616.19
7.3.290.0100.00316.31
7.3.280.0090.00816.30
7.3.270.0060.00917.40
7.3.260.0130.00718.24
7.3.250.0080.01116.40
7.3.240.0150.00316.32
7.3.230.0100.00716.69
7.3.210.0030.01316.54
7.3.200.0070.01119.39
7.3.190.0110.01416.55
7.3.180.0170.00016.34
7.3.170.0030.01416.39
7.3.160.0060.01316.34
7.3.120.0080.00814.92
7.3.110.0040.01414.57
7.3.100.0040.01415.15
7.3.90.0090.00614.97
7.3.80.0030.01314.79
7.3.70.0070.00714.82
7.3.60.0040.01414.95
7.3.50.0040.01114.68
7.3.40.0060.00314.84
7.3.30.0000.01514.74
7.3.20.0070.00316.64
7.3.10.0040.01116.39
7.3.00.0040.00716.80
7.2.330.0040.01416.74
7.2.320.0090.00916.72
7.2.310.0090.00916.59
7.2.300.0120.00916.59
7.2.290.0060.01016.56
7.2.250.0100.00314.97
7.2.240.0070.01414.88
7.2.230.0060.01014.86
7.2.220.0070.00315.16
7.2.210.0030.01315.16
7.2.200.0030.01015.10
7.2.190.0060.00615.18
7.2.180.0040.01115.14
7.2.170.0030.01014.80
7.2.160.0040.01115.14
7.2.150.0040.00817.08
7.2.140.0070.00716.81
7.2.130.0070.00716.93
7.2.120.0040.01116.85
7.2.110.0090.00917.04
7.2.100.0060.01216.85
7.2.90.0130.00316.93
7.2.80.0030.01317.12
7.2.70.0000.01216.82
7.2.60.0080.00417.09
7.2.50.0070.01116.82
7.2.40.0000.01616.70
7.2.30.0030.01317.00
7.2.20.0000.01517.14
7.2.10.0100.00617.05
7.2.00.0060.01018.29
7.1.330.0030.01316.00
7.1.320.0070.00715.86
7.1.310.0120.00315.96
7.1.300.0000.01515.80
7.1.290.0040.01115.63
7.1.280.0040.01115.77
7.1.270.0120.00316.01
7.1.260.0040.00715.83
7.1.250.0030.00515.61
7.1.240.0070.00715.75
7.1.230.0100.00315.59
7.1.220.0070.00715.86
7.1.210.0040.01115.90
7.1.200.0040.01115.93
7.1.190.0030.01215.78
7.1.180.0030.01015.64
7.1.170.0090.00615.61
7.1.160.0000.01215.68
7.1.150.0150.00615.80
7.1.140.0100.01015.91
7.1.130.0120.00015.87
7.1.120.0070.00715.90
7.1.110.0070.00715.83
7.1.100.0000.01016.71
7.1.90.0040.00815.79
7.1.80.0070.00415.64
7.1.70.0070.00416.59
7.1.60.0090.00917.53
7.1.50.0090.00916.37
7.1.40.0100.00715.78
7.1.30.0040.00715.63
7.1.20.0060.00615.46
7.1.10.0060.00615.87
7.1.00.0020.04519.28
7.0.330.0000.01015.52
7.0.320.0030.01015.29
7.0.310.0070.00715.42
7.0.300.0130.00315.24
7.0.290.0030.01415.24
7.0.280.0060.00615.35
7.0.270.0000.01215.39
7.0.260.0060.00915.51
7.0.250.0000.01415.44
7.0.240.0040.00715.46
7.0.230.0040.01115.52
7.0.220.0030.00915.23
7.0.210.0100.00715.59
7.0.200.0070.00416.16
7.0.190.0070.01115.63
7.0.180.0130.00315.48
7.0.170.0120.00615.52
7.0.160.0060.00915.54
7.0.150.0060.00615.44
7.0.140.0080.03918.68
7.0.130.0060.00615.31
7.0.120.0030.00715.30
7.0.110.0050.00515.23
7.0.100.0130.03517.73
7.0.90.0050.02817.61
7.0.80.0050.04217.67
7.0.70.0070.02617.83
7.0.60.0090.04217.80
7.0.50.0080.04817.94
7.0.40.0120.03516.85
7.0.30.0080.04316.72
7.0.20.0090.04516.83
7.0.10.0080.04016.76
7.0.00.0150.04216.77
5.6.400.0070.00714.36
5.6.390.0040.01114.20
5.6.380.0090.00614.52
5.6.370.0100.00314.10
5.6.360.0080.00813.90
5.6.350.0080.00314.47
5.6.340.0080.00414.59
5.6.330.0110.00414.29
5.6.320.0060.00614.32
5.6.310.0000.00914.34
5.6.300.0060.00314.12
5.6.290.0030.00614.14
5.6.280.0000.04417.90
5.6.270.0130.00314.27
5.6.260.0100.00314.43
5.6.250.0080.04517.66
5.6.240.0090.03617.44
5.6.230.0080.04017.49
5.6.220.0080.04417.41
5.6.210.0100.03617.57
5.6.200.0080.02917.60
5.6.190.0150.03717.78
5.6.180.0080.04017.70
5.6.170.0070.04517.71
5.6.160.0100.03817.68
5.6.150.0090.04517.67
5.6.140.0070.04317.66
5.6.130.0060.02617.71
5.6.120.0050.04417.70
5.6.110.0090.03917.70
5.6.100.0110.04017.58
5.6.90.0060.05317.75
5.6.80.0080.03817.47
5.6.70.0080.02817.09
5.6.60.0120.02217.23
5.6.50.0090.02217.33
5.6.40.0100.04217.34
5.6.30.0050.04417.17
5.6.20.0050.04717.12
5.6.10.0060.04117.29
5.6.00.0050.04317.37
5.5.380.0020.04517.26
5.5.370.0050.03417.31
5.5.360.0070.04017.35
5.5.350.0050.04717.40
5.5.340.0100.04217.62
5.5.330.0130.03717.45
5.5.320.0060.04617.52
5.5.310.0090.03817.28
5.5.300.0070.03017.62
5.5.290.0100.04317.49
5.5.280.0070.04317.49
5.5.270.0070.04417.46
5.5.260.0090.04217.63
5.5.250.0080.02917.52
5.5.240.0070.03917.14
5.5.230.0060.04317.18
5.5.220.0030.04717.30
5.5.210.0050.03417.13
5.5.200.0120.04017.28
5.5.190.0120.04217.08
5.5.180.0130.04017.08
5.5.170.0030.01014.27
5.5.160.0050.03717.30
5.5.150.0070.04017.24
5.5.140.0050.04317.19
5.5.130.0110.03817.32
5.5.120.0020.03317.24
5.5.110.0060.04417.14
5.5.100.0060.03917.09
5.5.90.0050.02917.06
5.5.80.0050.04117.12
5.5.70.0060.03517.22
5.5.60.0080.02617.20
5.5.50.0070.03817.24
5.5.40.0090.03717.06
5.5.30.0100.03817.10
5.5.20.0020.03017.24
5.5.10.0050.04217.23
5.5.00.0050.04516.96
5.4.450.0050.04316.13
5.4.440.0130.03816.00
5.4.430.0080.03716.12
5.4.420.0050.04416.14
5.4.410.0070.04215.94
5.4.400.0100.02215.97
5.4.390.0100.03515.96
5.4.380.0050.04115.92
5.4.370.0050.03615.92
5.4.360.0100.03615.97
5.4.350.0050.03815.96
5.4.340.0120.03315.84
5.4.330.0040.00812.80
5.4.320.0070.03915.84
5.4.310.0080.03615.85
5.4.300.0050.04015.91
5.4.290.0050.04115.97
5.4.280.0060.04315.93
5.4.270.0130.03515.99
5.4.260.0050.02716.02
5.4.250.0100.03915.92
5.4.240.0050.04215.99
5.4.230.0100.03815.85
5.4.220.0030.02616.01
5.4.210.0030.04315.87
5.4.200.0070.04015.92
5.4.190.0090.03815.84
5.4.180.0030.03615.94
5.4.170.0160.03515.95
5.4.160.0080.03615.95
5.4.150.0100.01915.91
5.4.140.0070.03814.47
5.4.130.0070.03314.59
5.4.120.0030.03214.57
5.4.110.0060.04014.57
5.4.100.0030.03814.61
5.4.90.0040.03614.54
5.4.80.0050.03814.54
5.4.70.0110.03014.58
5.4.60.0050.04014.55
5.4.50.0040.02314.60
5.4.40.0110.03314.66
5.4.30.0120.03314.60
5.4.20.0110.03214.63
5.4.10.0020.04314.58
5.4.00.0090.02814.30
5.3.290.0130.03513.76
5.3.280.0050.04613.66
5.3.270.0030.02813.73
5.3.260.0030.04213.67
5.3.250.0050.04013.76
5.3.240.0000.03113.73
5.3.230.0080.03513.75
5.3.220.0070.04213.74
5.3.210.0070.04013.68
5.3.200.0060.04113.72
5.3.190.0020.04513.66
5.3.180.0090.03613.67
5.3.170.0090.03913.66
5.3.160.0050.03813.64
5.3.150.0070.03813.68
5.3.140.0030.04313.75
5.3.130.0050.04113.69
5.3.120.0030.04513.73
5.3.110.0010.03913.73
5.3.100.0000.03113.42
5.3.90.0080.03513.44
5.3.80.0070.03713.40
5.3.70.0060.03513.37
5.3.60.0030.02313.40
5.3.50.0050.04113.36
5.3.40.0000.03613.38
5.3.30.0080.03213.34
5.3.20.0050.02713.31
5.3.10.0100.03213.30
5.3.00.0050.04213.22
5.2.170.0070.05712.20
5.2.160.0070.04712.20
5.2.150.0030.03312.20
5.2.140.0130.05712.20
5.2.130.0030.05712.20
5.2.120.0030.06312.20
5.2.110.0030.06312.20
5.2.100.0030.04012.20
5.2.90.0000.03312.20
5.2.80.0070.06012.20
5.2.70.0030.06712.20
5.2.60.0000.06012.20
5.2.50.0030.05712.20
5.2.40.0030.06712.20
5.2.30.0030.03712.20
5.2.20.0200.05012.20
5.2.10.0030.04312.20
5.2.00.0070.03012.20
5.1.60.0000.06012.20
5.1.50.0000.05712.20
5.1.40.0030.03012.20
5.1.30.0100.05012.20
5.1.20.0070.05012.20
5.1.10.0000.05012.20
5.1.00.0000.06012.20
5.0.50.0100.04012.20
5.0.40.0000.04712.20
5.0.30.0070.06012.20
5.0.20.0070.02012.20
5.0.10.0000.02312.20
5.0.00.0030.03012.20
4.4.90.0030.03312.20
4.4.80.0070.03012.20
4.4.70.0030.03312.20
4.4.60.0070.02012.20
4.4.50.0000.03312.20
4.4.40.0030.05012.20
4.4.30.0030.02012.20
4.4.20.0030.01712.20
4.4.10.0000.03312.20
4.4.00.0000.04312.20
4.3.110.0000.03712.20
4.3.100.0030.02712.20
4.3.90.0030.01312.20
4.3.80.0070.02012.20
4.3.70.0000.01712.20
4.3.60.0000.01712.20
4.3.50.0000.01712.20
4.3.40.0030.02712.20
4.3.30.0030.01312.20
4.3.20.0000.01712.20
4.3.10.0000.01712.20
4.3.00.0000.01712.20

preferences:
38.96 ms | 401 KiB | 5 Q