3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen($a) { $b = yield $a; yield $a + $b + 1; } function yf() { yield from gen(1); yield from gen(4); } $g = yf(); $g->current(); $g->raise(new Exception("Whoa there lassie"));

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.70.0130.00916.49
8.3.60.0110.01116.88
8.3.50.0120.00922.02
8.3.40.0000.01418.97
8.3.30.0070.00718.48
8.3.20.0040.00420.35
8.3.10.0070.00023.57
8.3.00.0080.00019.38
8.2.190.0110.00416.58
8.2.180.0120.00316.63
8.2.170.0070.00722.96
8.2.160.0100.00322.08
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0030.00517.63
8.2.120.0080.00026.35
8.2.110.0030.00722.16
8.2.100.0070.00417.80
8.2.90.0000.00819.14
8.2.80.0000.00817.97
8.2.70.0000.01017.50
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0050.00319.38
8.2.30.0070.00020.72
8.2.20.0060.00317.68
8.2.10.0030.00617.93
8.2.00.0000.00817.97
8.1.280.0100.00625.92
8.1.270.0000.00822.06
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0090.00023.92
8.1.230.0040.00820.45
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0090.00017.35
8.1.190.0050.00317.36
8.1.180.0000.00818.10
8.1.170.0040.00418.69
8.1.160.0080.00022.05
8.1.150.0000.00718.89
8.1.140.0060.00319.49
8.1.130.0000.00717.65
8.1.120.0000.00717.51
8.1.110.0080.00017.34
8.1.100.0070.00017.35
8.1.90.0050.00317.50
8.1.80.0060.00317.32
8.1.70.0000.00717.33
8.1.60.0080.00017.63
8.1.50.0050.00317.52
8.1.40.0000.00817.51
8.1.30.0040.00417.63
8.1.20.0040.00417.54
8.1.10.0070.00017.57
8.1.00.0000.00717.52
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0000.00718.39
8.0.270.0030.00317.07
8.0.260.0030.00317.19
8.0.250.0040.00416.83
8.0.240.0050.00316.95
8.0.230.0040.00416.82
8.0.220.0040.00416.87
8.0.210.0030.00416.79
8.0.200.0040.00416.91
8.0.190.0080.00016.93
8.0.180.0000.00816.73
8.0.170.0040.00416.94
8.0.160.0080.00016.80
8.0.150.0000.00716.86
8.0.140.0040.00716.84
8.0.130.0000.00613.37
8.0.120.0040.00416.87
8.0.110.0040.00416.98
8.0.100.0040.00416.82
8.0.90.0000.00716.92
8.0.80.0130.00316.89
8.0.70.0000.00717.06
8.0.60.0060.00316.80
8.0.50.0040.00416.77
8.0.30.0070.01117.21
8.0.20.0110.01117.40
8.0.10.0000.00716.95
8.0.00.0080.01016.78
7.4.330.0060.00015.08
7.4.320.0070.00016.43
7.4.300.0060.00016.55
7.4.290.0000.00716.36
7.4.280.0070.00016.54
7.4.270.0000.00716.40
7.4.260.0050.00516.47
7.4.250.0080.00016.43
7.4.240.0010.00616.50
7.4.230.0000.00716.71
7.4.220.0070.01016.58
7.4.210.0000.01716.60
7.4.200.0040.00416.49
7.4.160.0090.00616.54
7.4.150.0120.00617.40
7.4.140.0150.00917.86
7.4.130.0080.00916.56
7.4.120.0110.00616.48
7.4.110.0070.01016.45
7.4.100.0120.00916.40
7.4.90.0060.01216.55
7.4.80.0070.01019.39
7.4.70.0070.01716.47
7.4.60.0130.00316.66
7.4.50.0110.00416.62
7.4.40.0070.01016.48
7.4.30.0070.01416.20
7.4.00.0130.00315.03
7.3.330.0060.00013.19
7.3.320.0000.00613.22
7.3.310.0070.00016.25
7.3.300.0040.00416.37
7.3.290.0090.00616.34
7.3.280.0110.00816.40
7.3.270.0140.00317.40
7.3.260.0150.00316.37
7.3.250.0090.00916.43
7.3.240.0070.01016.41
7.3.230.0100.00716.59
7.3.210.0130.00316.29
7.3.200.0000.01716.35
7.3.190.0080.00816.59
7.3.180.0100.01016.43
7.3.170.0030.01816.27
7.3.160.0040.01216.43
7.3.10.0180.00716.53
7.3.00.0100.01416.39
7.2.330.0220.01916.61
7.2.320.0030.01616.67
7.2.310.0080.00816.48
7.2.300.0030.01316.65
7.2.290.0180.00016.52
7.2.130.0090.01216.52
7.2.120.0130.00916.72
7.2.110.0100.00716.34
7.2.100.0040.01416.80
7.2.90.0030.01016.72
7.2.80.0000.00916.75
7.2.70.0110.00416.66
7.2.60.0040.00916.60
7.2.50.0030.01316.43
7.2.40.0140.00916.47
7.2.30.0070.00716.45
7.2.20.0080.00716.39
7.2.10.0000.01116.66
7.2.00.0080.00818.21
7.1.250.0030.01615.41
7.1.200.0000.00615.70
7.1.100.0030.00918.17
7.1.70.0030.00617.15
7.1.60.0170.00719.48
7.1.50.0100.00317.05
7.1.00.0100.07022.33
7.0.200.0370.00714.86
7.0.60.0170.06320.04
7.0.50.0170.07017.99
7.0.40.0000.04720.03
7.0.30.0130.07720.30
7.0.20.0400.07320.17
7.0.10.0070.04020.25
7.0.00.0100.08320.03
5.6.280.0000.03321.04
5.6.210.0070.08320.55
5.6.200.0130.07018.18
5.6.190.0070.04320.46
5.6.180.0300.08320.33
5.6.170.0200.05720.62
5.6.160.0100.05020.52
5.6.150.0100.08018.20
5.6.140.0100.08318.14
5.6.130.0070.04018.18
5.6.120.0070.08321.00
5.6.110.0070.03720.96
5.6.100.0070.05721.00
5.6.90.0070.08321.02
5.6.80.0070.04720.41
5.5.350.0270.07020.53
5.5.340.0070.08317.95
5.5.330.0130.08020.37
5.5.320.0700.06720.30
5.5.310.0330.07320.23
5.5.300.0070.03718.06
5.5.290.0170.07717.95
5.5.280.0000.04320.80
5.5.270.0130.04720.67
5.5.260.0030.08720.65
5.5.250.0100.07020.65
5.5.240.0100.06320.22

preferences:
63.59 ms | 401 KiB | 5 Q