3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen1() { $x = yield 1; yield 2; yield $x; } function gen2() { yield from gen1(); yield from gen1(); } function gen3() { yield from gen2(); } $g = gen3(); var_dump($g->current()); $g->send(100); while($g->valid()) { $g->next(); $val = $g->current(); var_dump($val); }

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.0000.01816.38
8.3.50.0090.00821.99
8.3.40.0070.00718.61
8.3.30.0030.01018.71
8.3.20.0060.00320.21
8.3.10.0040.00421.77
8.3.00.0040.00419.38
8.2.180.0110.00418.41
8.2.170.0090.00622.96
8.2.160.0030.01022.25
8.2.150.0070.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00220.98
8.2.110.0000.01020.35
8.2.100.0070.00417.93
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00419.21
8.2.30.0040.00420.74
8.2.20.0080.00017.75
8.2.10.0000.00717.97
8.2.00.0000.00718.11
8.1.280.0120.00625.92
8.1.270.0080.00023.91
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00722.61
8.1.230.0030.00717.65
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.13
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0030.00618.69
8.1.160.0000.00822.02
8.1.150.0070.00018.81
8.1.140.0000.00819.63
8.1.130.0070.00017.66
8.1.120.0050.00217.37
8.1.110.0000.00717.34
8.1.100.0000.00817.39
8.1.90.0050.00317.45
8.1.80.0000.00817.45
8.1.70.0040.00417.47
8.1.60.0000.00717.48
8.1.50.0080.00017.59
8.1.40.0040.00417.50
8.1.30.0040.00417.67
8.1.20.0040.00417.62
8.1.10.0000.00817.54
8.1.00.0000.00817.29
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0000.00818.39
8.0.270.0030.00317.19
8.0.260.0050.00317.30
8.0.250.0080.00016.96
8.0.240.0050.00217.02
8.0.230.0070.00016.97
8.0.220.0020.00516.79
8.0.210.0080.00016.80
8.0.200.0040.00416.91
8.0.190.0060.00316.91
8.0.180.0060.00316.89
8.0.170.0050.00216.98
8.0.160.0000.00816.85
8.0.150.0040.00416.92
8.0.140.0040.00416.88
8.0.130.0000.00613.36
8.0.120.0040.00416.74
8.0.110.0020.00516.79
8.0.100.0030.00516.76
8.0.90.0040.00416.79
8.0.80.0100.00516.91
8.0.70.0040.00416.99
8.0.60.0000.00716.70
8.0.50.0000.00716.79
8.0.30.0160.00417.04
8.0.20.0120.00817.40
8.0.10.0000.00716.99
8.0.00.0100.00916.74
7.4.330.0030.00315.08
7.4.320.0030.00316.60
7.4.300.0000.00616.60
7.4.290.0020.00516.43
7.4.280.0000.00816.52
7.4.270.0000.00716.48
7.4.260.0070.00016.60
7.4.250.0000.00816.47
7.4.240.0020.00516.54
7.4.230.0020.00516.48
7.4.220.0070.01016.55
7.4.210.0040.01116.38
7.4.200.0000.00816.62
7.4.160.0160.00016.66
7.4.150.0060.01217.40
7.4.140.0180.00617.86
7.4.130.0120.01016.56
7.4.120.0120.01016.57
7.4.110.0160.00316.72
7.4.100.0140.00416.48
7.4.90.0130.01016.48
7.4.80.0070.01119.39
7.4.70.0090.00616.51
7.4.60.0040.01416.59
7.4.50.0040.00416.49
7.4.40.0070.01016.42
7.4.30.0080.01516.50
7.4.00.0040.01114.81
7.3.330.0000.00513.12
7.3.320.0030.00313.14
7.3.310.0070.00016.26
7.3.300.0060.00016.32
7.3.290.0110.00516.28
7.3.280.0090.00916.28
7.3.270.0090.00817.40
7.3.260.0100.00616.57
7.3.250.0090.00916.44
7.3.240.0090.00816.44
7.3.230.0100.01316.39
7.3.210.0090.00916.23
7.3.200.0130.00216.50
7.3.190.0060.01116.22
7.3.180.0070.01016.56
7.3.170.0060.01116.42
7.3.160.0090.00616.67
7.3.10.0070.00716.67
7.3.00.0030.01216.46
7.2.330.0100.01016.45
7.2.320.0060.01716.70
7.2.310.0040.01516.82
7.2.300.0000.01916.62
7.2.290.0060.01216.77
7.2.130.0030.01016.59
7.2.120.0040.01116.82
7.2.110.0070.00716.59
7.2.100.0040.00716.73
7.2.90.0030.00717.10
7.2.80.0060.00616.79
7.2.70.0040.00716.97
7.2.60.0040.00816.91
7.2.50.0040.00417.04
7.2.40.0000.01516.97
7.2.30.0040.00816.94
7.2.20.0120.00017.00
7.2.10.0030.00816.80
7.2.00.0030.01018.21
7.1.250.0040.00815.71
7.1.200.0050.00915.55
7.1.70.0040.00817.13
7.1.60.0060.00617.13
7.1.50.0120.00916.71
7.1.00.0030.07722.44
7.0.200.0100.00316.91
7.0.60.0030.08719.89
7.0.50.0070.08717.90
7.0.40.0030.06320.09
7.0.30.0100.03320.26
7.0.20.0430.06320.23
7.0.10.0000.05020.16
7.0.00.0030.04720.07
5.6.280.0070.06020.87
5.6.210.0100.05020.50
5.6.200.0030.08318.27
5.6.190.0070.08720.61
5.6.180.0470.04720.63
5.6.170.0270.06320.47
5.6.160.0100.08320.54
5.6.150.0000.04018.29
5.6.140.0100.06018.17
5.6.130.0030.08318.23
5.6.120.0070.04020.99
5.6.110.0100.08021.01
5.6.100.0100.08021.13
5.6.90.0130.07320.98
5.6.80.0130.07020.51
5.5.350.0330.07720.42
5.5.340.0130.07317.95
5.5.330.0030.04320.19
5.5.320.0230.04020.30
5.5.310.0230.03720.21
5.5.300.0030.08018.03
5.5.290.0070.08317.98
5.5.280.0030.07320.87
5.5.270.0070.06720.88
5.5.260.0200.07020.73
5.5.250.0070.05320.70
5.5.240.0070.07020.19
5.4.450.0200.05719.16
5.4.440.0200.05019.63
5.4.430.0170.05019.46
5.4.420.0070.06019.54
5.4.410.0070.06019.25
5.4.400.0100.05719.24
5.4.390.0230.04719.13
5.4.380.0200.05019.27
5.4.370.0200.05319.14
5.4.360.0330.04019.13
5.4.350.0170.05019.26
5.4.340.0100.05719.00
5.4.320.0130.05718.84
5.4.310.0230.04318.98
5.4.300.0270.04319.11
5.4.290.0200.05019.27
5.4.280.0130.05718.88
5.4.270.0230.06718.86
5.4.260.0100.05719.14
5.4.250.0100.06018.86
5.4.240.0100.05719.32
5.4.230.0070.06019.35
5.4.220.0100.06019.22
5.4.210.0070.06019.12
5.4.200.0170.05019.15
5.4.190.0100.06319.17
5.4.180.0270.04319.24
5.4.170.0070.06018.96
5.4.160.0270.04018.99
5.4.150.0200.05019.12
5.4.140.0170.04716.39
5.4.130.0070.05316.34
5.4.120.0100.05016.39
5.4.110.0100.05316.60
5.4.100.0200.04016.64
5.4.90.0270.06016.53
5.4.80.0130.05016.23
5.4.70.0170.05016.50
5.4.60.0130.05016.22
5.4.50.0170.04716.63
5.4.40.0100.06316.41
5.4.30.0200.04316.48
5.4.20.0070.05716.58
5.4.10.0130.05016.48
5.4.00.0170.04715.93

preferences:
44.85 ms | 401 KiB | 5 Q