3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen1() { $x = yield 1; $y = yield 2; var_dump($x + $y); } $g = gen1(); $g->next(); $g->send(20);

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.0070.00716.63
8.3.50.0200.00320.97
8.3.40.0130.00718.83
8.3.30.0110.00918.20
8.3.20.0080.00020.21
8.3.10.0040.00423.71
8.3.00.0000.00817.91
8.2.180.0130.00616.50
8.2.170.0140.00022.96
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00717.63
8.2.110.0030.00922.25
8.2.100.0080.00317.93
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0090.00317.63
8.2.60.0040.00418.02
8.2.50.0070.00318.07
8.2.40.0100.00319.13
8.2.30.0080.00020.51
8.2.20.0040.00417.66
8.2.10.0040.00417.98
8.2.00.0080.00018.06
8.1.280.0150.00625.92
8.1.270.0180.00023.72
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.57
8.1.230.0110.00017.78
8.1.220.0000.00917.78
8.1.210.0000.00918.77
8.1.200.0030.00617.36
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00920.38
8.1.160.0000.00822.02
8.1.150.0040.00418.94
8.1.140.0050.00321.40
8.1.130.0000.00717.76
8.1.120.0000.00717.48
8.1.110.0040.00417.45
8.1.100.0070.00017.43
8.1.90.0000.00717.37
8.1.80.0000.00717.36
8.1.70.0080.00017.45
8.1.60.0000.00817.65
8.1.50.0040.00417.43
8.1.40.0030.00817.40
8.1.30.0030.00517.66
8.1.20.0040.00417.59
8.1.10.0040.00417.58
8.1.00.0000.00817.30
8.0.300.0020.00518.77
8.0.290.0050.00216.75
8.0.280.0000.00718.38
8.0.270.0000.00717.18
8.0.260.0030.00317.28
8.0.250.0070.00016.97
8.0.240.0000.00717.01
8.0.230.0070.00017.09
8.0.220.0040.00417.00
8.0.210.0040.00416.92
8.0.200.0000.00617.02
8.0.190.0000.00817.03
8.0.180.0050.00216.95
8.0.170.0060.00316.91
8.0.160.0080.00016.90
8.0.150.0000.00716.96
8.0.140.0040.00416.82
8.0.130.0000.00513.34
8.0.120.0070.00016.89
8.0.110.0040.00416.99
8.0.100.0080.00016.95
8.0.90.0030.00316.81
8.0.80.0060.01216.95
8.0.70.0040.00416.93
8.0.60.0000.00816.99
8.0.50.0020.00517.05
8.0.30.0060.01317.13
8.0.20.0080.01317.40
8.0.10.0000.00916.95
8.0.00.0080.01116.72
7.4.330.0030.00315.12
7.4.320.0030.00316.41
7.4.300.0000.00716.63
7.4.290.0030.00316.52
7.4.280.0000.00816.42
7.4.270.0040.00416.62
7.4.260.0000.00716.48
7.4.250.0080.00016.59
7.4.240.0020.00616.56
7.4.230.0000.00716.56
7.4.220.0100.01116.44
7.4.210.0110.00316.41
7.4.200.0000.00716.58
7.4.160.0070.00716.73
7.4.150.0120.00917.40
7.4.140.0110.00717.86
7.4.130.0100.01116.50
7.4.120.0080.00916.50
7.4.110.0110.00616.61
7.4.100.0150.00816.30
7.4.90.0100.00716.47
7.4.80.0100.00619.39
7.4.70.0100.00716.59
7.4.60.0030.01316.50
7.4.50.0080.00016.55
7.4.40.0120.00916.69
7.4.30.0090.01216.66
7.4.00.0030.01014.71
7.3.330.0060.00013.30
7.3.320.0000.00613.30
7.3.310.0040.00416.29
7.3.300.0000.00716.20
7.3.290.0080.01116.26
7.3.280.0090.01016.31
7.3.270.0090.01217.40
7.3.260.0160.00516.61
7.3.250.0120.00516.37
7.3.240.0150.00816.61
7.3.230.0050.01316.48
7.3.210.0190.00516.35
7.3.200.0090.00616.68
7.3.190.0060.00916.55
7.3.180.0060.00916.37
7.3.170.0070.01116.39
7.3.160.0090.00616.55
7.3.10.0040.00816.39
7.3.00.0060.00316.44
7.2.330.0100.01316.79
7.2.320.0090.00916.79
7.2.310.0150.01016.64
7.2.300.0030.01316.79
7.2.290.0070.01516.73
7.2.130.0030.00716.90
7.2.120.0040.00816.80
7.2.110.0120.00316.91
7.2.100.0050.00516.92
7.2.90.0130.00316.73
7.2.80.0120.00316.93
7.2.70.0120.00316.96
7.2.60.0070.00716.63
7.2.50.0040.00716.96
7.2.40.0090.00016.69
7.2.30.0070.00716.76
7.2.20.0030.00616.65
7.2.10.0060.00616.61
7.2.00.0040.00718.16
7.1.250.0040.00415.51
7.1.200.0040.00715.59
7.1.100.0110.00418.00
7.1.70.0080.00816.91
7.1.60.0040.01819.50
7.1.50.0110.01116.70
7.1.00.0100.07022.40
7.0.200.0040.00416.63
7.0.60.0230.07321.74
7.0.50.0130.07717.86
7.0.40.0100.08720.11
7.0.30.0270.05320.10
7.0.20.0230.07320.21
7.0.10.0070.08320.23
7.0.00.0000.04720.29
5.6.280.0000.03320.91
5.6.210.0170.07020.63
5.6.200.0030.08018.14
5.6.190.0200.03720.61
5.6.180.0270.05720.39
5.6.170.0330.06320.47
5.6.160.0070.04720.48
5.6.150.0100.03318.27
5.6.140.0100.07718.21
5.6.130.0030.08318.15
5.6.120.0170.03320.96
5.6.110.0130.07021.04
5.6.100.0130.04320.96
5.6.90.0030.04321.13
5.6.80.0030.06020.48
5.5.350.0130.08720.42
5.5.340.0130.06717.99
5.5.330.0070.08020.47
5.5.320.0370.05320.28
5.5.310.0270.06320.37
5.5.300.0030.04017.95
5.5.290.0000.04317.97
5.5.280.0100.05020.74
5.5.270.0070.07720.84
5.5.260.0070.03720.88
5.5.250.0130.07020.71
5.5.240.0070.03320.19
5.4.450.0230.06719.48
5.4.440.0130.04019.37
5.4.430.0230.03319.47
5.4.420.0200.03719.45
5.4.410.0070.04319.42
5.4.400.0170.04019.23
5.4.390.0200.04019.11
5.4.380.0200.04019.10
5.4.370.0130.03719.13
5.4.360.0130.04019.13
5.4.350.0170.05719.06
5.4.340.0100.04019.13
5.4.320.0170.07318.93
5.4.310.0130.04719.23
5.4.300.0070.04319.19
5.4.290.0270.05719.15
5.4.280.0230.06019.22
5.4.270.0270.06018.93
5.4.260.0270.06019.06
5.4.250.0200.04319.17
5.4.240.0200.03319.10
5.4.230.0100.04019.13
5.4.220.0100.04319.26
5.4.210.0230.04318.96
5.4.200.0230.04319.15
5.4.190.0370.06018.98
5.4.180.0170.03719.14
5.4.170.0270.04319.19
5.4.160.0230.07319.18
5.4.150.0230.04319.02
5.4.140.0200.03316.38
5.4.130.0270.03716.41
5.4.120.0230.06016.48
5.4.110.0230.06016.63
5.4.100.0300.03316.36
5.4.90.0230.04016.46

preferences:
54.16 ms | 401 KiB | 5 Q