3v4l.org

run code in 300+ PHP versions simultaneously
<?php $g = function () { $r = yield "get me a number"; echo "Hey it's g, I've got a {$r}\n"; }; $gen = $g(); foreach ($gen as $generated) { echo "g asked to: {$generated}\n"; $gen->send(12); }

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.4.140.0090.01517.65
8.4.130.0080.01217.49
8.4.120.0060.00424.32
8.4.110.0070.00322.49
8.4.100.0130.00717.85
8.4.90.0050.00518.45
8.4.80.0110.00717.66
8.4.70.0100.00917.77
8.4.60.0090.01118.54
8.4.50.0140.00617.79
8.4.40.0080.00417.47
8.4.30.0110.00617.57
8.4.20.0140.00720.40
8.4.10.0060.00319.40
8.3.260.0140.00616.59
8.3.250.0060.00218.80
8.3.240.0110.00816.97
8.3.230.0090.01116.54
8.3.220.0110.00817.13
8.3.210.0080.01116.66
8.3.200.0050.00316.50
8.3.190.0100.01017.23
8.3.180.0120.00816.27
8.3.170.0140.00018.92
8.3.160.0100.01018.21
8.3.150.0060.01320.63
8.3.140.0080.00018.25
8.3.130.0030.00518.60
8.3.120.0060.00318.98
8.3.110.0070.01120.94
8.3.100.0130.00324.06
8.3.90.0070.00726.77
8.3.80.0060.00317.97
8.3.70.0110.00418.31
8.3.60.0150.00018.43
8.3.50.0130.00621.08
8.3.40.0090.00618.88
8.3.30.0140.00018.43
8.3.20.0080.00019.10
8.3.10.0000.00721.86
8.3.00.0040.00420.96
8.2.290.0060.00520.64
8.2.280.0020.00618.42
8.2.270.0140.00318.88
8.2.260.0070.01119.98
8.2.250.0000.00816.44
8.2.240.0030.00516.94
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00016.63
8.2.190.0040.01116.58
8.2.180.0140.00716.32
8.2.170.0110.00722.96
8.2.160.0110.00418.78
8.2.150.0040.00424.18
8.2.140.0110.00724.66
8.2.130.0030.00520.53
8.2.120.0040.00426.35
8.2.110.0100.00021.03
8.2.100.0040.00820.36
8.2.90.0000.00719.47
8.2.80.0040.00417.97
8.2.70.0050.00518.05
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0000.00820.40
8.2.30.0050.00219.12
8.2.20.0070.00018.11
8.2.10.0030.00618.05
8.2.00.0000.00717.55
8.1.330.0120.00622.08
8.1.320.0110.00816.04
8.1.310.0120.00618.54
8.1.300.0040.00420.30
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0080.00024.00
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0120.00020.86
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0030.00518.89
8.1.160.0070.00018.88
8.1.150.0030.00420.23
8.1.140.0030.00519.57
8.1.130.0000.00717.75
8.1.120.0000.00717.41
8.1.110.0040.00417.47
8.1.100.0040.00417.38
8.1.90.0030.00517.45
8.1.80.0040.00417.52
8.1.70.0000.00717.48
8.1.60.0000.00717.52
8.1.50.0090.00017.39
8.1.40.0060.00317.52
8.1.30.0000.00817.64
8.1.20.0000.00817.55
8.1.10.0040.00417.43
8.1.00.0000.00817.46
8.0.300.0000.00719.76
8.0.290.0080.00016.63
8.0.280.0040.00418.44
8.0.270.0080.00017.21
8.0.260.0030.00317.16
8.0.250.0000.00716.95
8.0.240.0030.00316.91
8.0.230.0030.00316.94
8.0.220.0030.00316.79
8.0.210.0040.00416.89
8.0.200.0000.00716.91
8.0.190.0000.00716.82
8.0.180.0070.00016.95
8.0.170.0040.00416.80
8.0.160.0040.00316.86
8.0.150.0030.00516.80
8.0.140.0030.00916.86
8.0.130.0030.00313.31
8.0.120.0040.00416.72
8.0.110.0000.00816.74
8.0.100.0050.00217.00
8.0.90.0050.00316.78
8.0.80.0130.00916.95
8.0.70.0000.00717.00
8.0.60.0000.00816.77
8.0.50.0070.00016.82
8.0.30.0110.00716.90
8.0.20.0130.00917.40
8.0.10.0060.00316.83
8.0.00.0060.01216.99
7.4.330.0070.00015.55
7.4.320.0000.00616.50
7.4.300.0000.00616.46
7.4.290.0030.00316.63
7.4.280.0040.00416.49
7.4.270.0030.00316.50
7.4.260.0070.00016.53
7.4.250.0040.00416.44
7.4.240.0000.00716.60
7.4.230.0030.00316.40
7.4.220.0030.01616.69
7.4.210.0120.00316.71
7.4.200.0000.00816.59
7.4.160.0130.00516.44
7.4.150.0140.00917.40
7.4.140.0070.01317.86
7.4.130.0090.00816.51
7.4.120.0110.00616.54
7.4.110.0120.00616.38
7.4.100.0030.01416.50
7.4.90.0060.01216.53
7.4.80.0130.00319.39
7.4.70.0090.00916.39
7.4.60.0150.00616.38
7.4.50.0070.00716.45
7.4.40.0090.00616.58
7.4.30.0060.00916.30
7.4.00.0030.01314.97
7.3.330.0000.00513.31
7.3.320.0050.00013.39
7.3.310.0030.00316.23
7.3.300.0000.00716.25
7.3.290.0080.00616.36
7.3.280.0110.00716.34
7.3.270.0060.01217.40
7.3.260.0070.01116.53
7.3.250.0080.01016.47
7.3.240.0100.01216.57
7.3.230.0040.01416.58
7.3.210.0070.01016.21
7.3.200.0160.00016.43
7.3.190.0060.01016.59
7.3.180.0150.00816.63
7.3.170.0070.01116.51
7.3.160.0110.00516.32
7.2.330.0060.01416.68
7.2.320.0100.00716.68
7.2.310.0130.01016.58
7.2.300.0090.01116.73
7.2.290.0130.00916.80
7.2.60.0040.00716.99
7.1.200.0030.01015.68
7.1.70.0040.00417.21
7.1.60.0000.01017.09
7.1.50.0130.00734.73
7.1.00.0130.05322.61
7.0.200.0640.00714.66
7.0.140.0100.06322.03
7.0.130.0170.05322.01
7.0.120.0200.06322.22
7.0.110.0100.06322.23
7.0.100.0070.06322.17
7.0.90.0130.06022.16
7.0.80.0130.07022.18
7.0.70.0170.06022.15
7.0.60.0100.06322.11
7.0.50.0130.05322.17
7.0.40.0230.06722.02
7.0.30.0070.06021.99
7.0.20.0130.05022.14
7.0.10.0130.05022.04
7.0.00.0170.06321.98
5.6.280.0030.06020.91
5.6.270.0100.06020.93
5.6.260.0130.05321.11
5.6.250.0170.05320.81
5.6.240.0200.06721.07
5.6.230.0070.07021.10
5.6.220.0100.05320.74
5.6.210.0100.05721.09
5.6.200.0030.06720.92
5.6.190.0070.06320.88
5.6.180.0070.06020.92
5.6.170.0130.05021.05
5.6.160.0070.06720.73
5.6.150.0230.06321.00
5.6.140.0170.05021.06
5.6.130.0170.05720.84
5.6.120.0070.06020.99
5.6.110.0100.06320.91
5.6.100.0130.05021.02
5.6.90.0100.05320.85
5.6.80.0070.05320.42
5.6.70.0030.05720.29
5.6.60.0100.05320.19
5.6.50.0070.05320.21
5.6.40.0100.05020.41
5.6.30.0030.06020.45
5.6.20.0030.06320.39
5.6.10.0170.05320.23
5.6.00.0130.04720.22

preferences:
38.41 ms | 403 KiB | 5 Q