3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generator($n) { foreach(generator($n) as $l) { yield $l; } } foreach(generator(10) as $l) { print $l; }

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.0330.03056.64
8.3.50.0370.03456.01
8.3.40.0520.00647.93
8.3.30.0400.01047.80
8.3.20.0190.00648.77
8.3.10.0200.00751.30
8.3.00.0220.00651.18
8.2.180.0320.00638.88
8.2.170.0290.01040.92
8.2.160.0340.00742.66
8.2.150.0210.00042.62
8.2.140.0190.00342.68
8.2.130.0170.00342.65
8.2.120.0150.00741.11
8.2.110.0160.01643.07
8.2.100.0230.00740.29
8.2.90.0190.00340.10
8.2.80.0130.00940.15
8.2.70.0130.00640.05
8.2.60.0200.00040.22
8.2.50.0130.00739.68
8.2.40.0070.01041.87
8.2.30.0140.00441.49
8.2.20.0220.00340.22
8.2.10.0070.01040.19
8.2.00.0140.00341.54
8.1.270.0190.00345.01
8.1.260.0090.00643.57
8.1.250.0180.00344.89
8.1.240.0150.00345.86
8.1.230.0200.01043.89
8.1.220.0130.00640.53
8.1.210.0180.00641.91
8.1.200.0130.01040.10
8.1.190.0170.00739.98
8.1.180.0080.01240.16
8.1.170.0170.00341.55
8.1.160.0150.00441.74
8.1.150.0100.00741.82
8.1.140.0070.01045.00
8.1.130.0170.00043.20
8.1.120.0070.01040.23
8.1.110.0090.00940.31
8.1.100.0030.01340.33
8.1.90.0160.00040.36
8.1.80.0170.01040.39
8.1.70.0140.00340.33
8.1.60.0120.00640.43
8.1.50.0120.00641.23
8.1.40.0160.00341.10
8.1.30.0130.00641.22
8.1.20.0150.00941.30
8.1.10.0170.00341.22
8.1.00.0120.00840.99
8.0.300.0130.00742.45
8.0.290.0120.00639.25
8.0.280.0100.00741.14
8.0.270.0090.00940.03
8.0.260.0260.00041.28
8.0.250.0140.00339.69
8.0.240.0070.01039.54
8.0.230.0130.00339.69
8.0.220.0030.01339.57
8.0.210.0160.00039.66
8.0.200.0160.00039.58
8.0.190.0150.00439.66
8.0.180.0090.00939.69
8.0.170.0240.00739.69
8.0.160.0110.00839.64
8.0.150.0150.00339.55
8.0.140.0120.00639.62
8.0.130.0130.00336.13
8.0.120.0060.01239.66
8.0.110.0110.00739.51
8.0.100.0130.00639.64
8.0.90.0100.00739.63
8.0.80.0350.02239.62
8.0.70.0100.00739.71
8.0.60.0070.01139.45
8.0.50.0110.00739.42
8.0.30.0310.01539.69
8.0.20.0340.02539.79
8.0.10.0150.00439.68
8.0.00.0270.02240.31
7.4.330.0000.01338.93
7.4.320.0110.00739.86
7.4.300.0140.00439.95
7.4.290.0070.01140.05
7.4.280.0130.00640.14
7.4.270.0120.00640.01
7.4.260.0090.00939.98
7.4.250.0060.01239.99
7.4.240.0170.00339.96
7.4.230.0080.01139.99
7.4.220.0100.00740.21
7.4.210.0340.02040.03
7.4.200.0110.00740.10
7.4.160.0280.02040.10
7.4.140.0290.02340.09
7.4.130.0290.01940.13
7.4.120.0320.01840.04
7.4.110.0360.01640.33
7.4.100.0360.01040.00
7.4.90.0450.01440.05
7.4.80.0360.01339.97
7.4.70.0430.01939.93
7.4.60.0320.01640.18
7.4.50.0160.01340.19
7.4.40.0450.01939.94
7.3.330.0090.00937.79
7.3.320.0150.00437.77
7.3.310.0130.00740.55
7.3.300.0070.01340.64
7.3.290.0090.00940.73
7.3.280.0350.01640.68
7.3.260.0350.01340.90
7.3.240.0320.01540.96
7.3.230.0380.01140.68
7.3.210.0330.01541.06
7.3.200.0280.02240.69
7.3.190.0430.02040.73
7.3.180.0170.03140.67
7.3.170.0290.01940.75
7.3.160.0280.01940.80
7.2.330.0420.01142.87
7.2.320.0300.02342.85
7.2.310.0320.01942.94
7.2.300.0330.01642.81
7.2.290.0360.01342.67
7.2.120.8360.01741.13
7.2.110.2290.01041.00
7.2.101.0730.01041.03
7.2.90.3820.02041.04
7.2.80.3570.02041.17
7.2.70.5620.01241.39
7.2.60.9340.01341.34
7.2.51.1300.01841.46
7.2.41.4530.02141.46
7.2.30.7040.01341.30
7.2.20.4810.01341.38
7.2.10.8360.02141.28
7.2.01.1480.01841.24
7.1.241.5310.01851.27
7.1.230.2720.01451.87
7.1.220.5140.02451.79
7.1.210.7650.01551.80
7.1.200.6020.01651.90
7.1.190.9480.01252.00
7.1.181.5620.02045.99
7.1.171.6010.02045.21
7.1.161.9000.01846.20
7.1.151.2840.02052.04
7.1.140.6240.03251.94
7.1.132.1330.02143.94
7.1.121.3030.01252.13
7.1.110.9320.01551.97
7.1.101.2580.02551.87
7.1.90.8430.02051.91
7.1.80.6900.01751.95
7.1.71.3840.02352.09
7.1.61.7090.02351.88
7.1.51.4440.02052.04
7.1.41.4200.04051.93
7.1.31.6180.00751.88
7.1.22.5560.01748.21
7.1.11.0740.02051.78
7.1.01.2200.01351.65
7.0.321.9010.02559.84
7.0.311.5220.01779.66
7.0.301.5470.02079.90
7.0.292.5420.01371.53
7.0.282.4620.01777.80
7.0.272.4570.01059.08
7.0.262.4540.02756.78
7.0.252.5070.01050.87
7.0.242.3580.00754.80
7.0.232.3750.01056.74
7.0.221.6510.02379.96
5.6.380.0420.02341.70
5.6.370.0320.03241.76
5.6.360.0240.03741.76
5.6.350.0480.01341.75
5.6.340.0320.02541.69
5.6.330.0410.02241.60
5.6.320.0450.02041.80

preferences:
56.72 ms | 400 KiB | 5 Q