3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen($a) { try { $b = yield $a; yield $a + $b + 1; } catch (Exception $e) { echo "Caught Exception: {$e->getMessage()}\n"; } } function yf() { yield from gen(1); yield from gen(4); } $g = yf(); $g->current(); $g->throw(new Exception("Whoa there lassie")); echo "Sup son!";

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.0150.00616.38
8.3.60.0160.00616.75
8.3.50.0160.00522.09
8.3.40.0090.00618.87
8.3.30.0110.00318.89
8.3.20.0070.00020.34
8.3.10.0040.00423.67
8.3.00.0080.00019.38
8.2.190.0090.00616.58
8.2.180.0120.00316.38
8.2.170.0090.00922.96
8.2.160.0030.01022.21
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0030.00617.50
8.2.120.0080.00026.35
8.2.110.0040.00720.54
8.2.100.0090.00318.03
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0080.00017.91
8.2.50.0000.00818.07
8.2.40.0000.00819.49
8.2.30.0040.00420.73
8.2.20.0000.00917.66
8.2.10.0040.00418.11
8.2.00.0000.00718.10
8.1.280.0040.01225.92
8.1.270.0090.00022.01
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00023.97
8.1.230.0040.00817.43
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0030.00618.60
8.1.160.0040.00421.87
8.1.150.0070.00018.88
8.1.140.0040.00419.56
8.1.130.0000.00717.74
8.1.120.0070.00017.39
8.1.110.0030.00517.43
8.1.100.0000.00717.44
8.1.90.0000.00717.51
8.1.80.0020.00517.35
8.1.70.0030.00317.34
8.1.60.0050.00517.51
8.1.50.0040.00417.57
8.1.40.0000.01017.52
8.1.30.0040.00417.54
8.1.20.0040.00417.61
8.1.10.0030.00517.47
8.1.00.0080.00317.38
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0070.00018.49
8.0.270.0040.00417.17
8.0.260.0000.00817.13
8.0.250.0040.00417.02
8.0.240.0000.00817.06
8.0.230.0040.00416.99
8.0.220.0030.00516.93
8.0.210.0040.00416.94
8.0.200.0000.00616.88
8.0.190.0040.00416.98
8.0.180.0040.00416.87
8.0.170.0000.00816.87
8.0.160.0040.00417.07
8.0.150.0000.00716.91
8.0.140.0070.00316.78
8.0.130.0030.00313.38
8.0.120.0000.00916.93
8.0.110.0070.00016.92
8.0.100.0000.00716.95
8.0.90.0000.00816.96
8.0.80.0090.00617.01
8.0.70.0050.00316.87
8.0.60.0040.00416.83
8.0.50.0040.00416.99
8.0.30.0040.01317.18
8.0.20.0110.01017.40
8.0.10.0030.00616.95
8.0.00.0060.01116.94
7.4.330.0020.00515.08
7.4.320.0030.00316.62
7.4.300.0030.00316.61
7.4.290.0070.00016.52
7.4.280.0080.00316.50
7.4.270.0000.00816.62
7.4.260.0030.00316.62
7.4.250.0000.00816.48
7.4.240.0020.00516.55
7.4.230.0030.00316.39
7.4.220.0040.01316.71
7.4.210.0070.00716.63
7.4.200.0040.00416.63
7.4.160.0100.00616.38
7.4.150.0100.00717.40
7.4.140.0100.01217.86
7.4.130.0110.00616.53
7.4.120.0120.00616.76
7.4.110.0030.01416.41
7.4.100.0090.01216.57
7.4.90.0110.00816.38
7.4.80.0070.01019.39
7.4.70.0100.01316.55
7.4.60.0030.01216.39
7.4.50.0090.00916.32
7.4.40.0090.00916.55
7.4.30.0040.01416.57
7.4.00.0110.00415.18
7.3.330.0000.00613.22
7.3.320.0030.00313.22
7.3.310.0070.00016.32
7.3.300.0000.00716.30
7.3.290.0050.01016.33
7.3.280.0070.01116.35
7.3.270.0100.00717.40
7.3.260.0120.00816.39
7.3.250.0080.00916.45
7.3.240.0050.01416.34
7.3.230.0090.01216.46
7.3.210.0130.00316.46
7.3.200.0030.01316.34
7.3.190.0120.00916.57
7.3.180.0130.00316.52
7.3.170.0130.00616.33
7.3.160.0120.00416.38
7.2.330.0160.00316.43
7.2.320.0150.00316.84
7.2.310.0030.01416.70
7.2.300.0120.00416.80
7.2.290.0090.00916.71
7.2.60.0030.01117.03
7.2.00.0040.00819.43
7.1.200.0000.00915.44
7.1.100.0070.00717.76
7.1.70.0000.01316.78
7.1.60.0100.01419.48
7.1.50.0130.01016.90
7.1.00.0070.07022.31
7.0.200.0330.01014.84
7.0.60.0100.08019.98
7.0.50.0170.05717.85
7.0.40.0070.05320.24
7.0.30.0100.07720.21
7.0.20.0430.06720.23
7.0.10.0100.03720.19
7.0.00.0100.07320.24
5.6.280.0000.03321.07
5.6.210.0030.04020.47
5.6.200.0030.08718.19
5.6.190.0100.04020.46
5.6.180.0300.05020.48
5.6.170.0200.08320.48
5.6.160.0100.08320.61
5.6.150.0130.04318.16
5.6.140.0170.07318.12
5.6.130.0030.08018.18
5.6.120.0100.08320.92
5.6.110.0070.08720.99
5.6.100.0100.07021.01
5.6.90.0100.08320.98
5.6.80.0070.07320.36
5.5.350.4270.04020.38
5.5.340.0070.07717.95
5.5.330.0070.04720.43
5.5.320.0570.07320.52
5.5.310.0400.07020.27
5.5.300.0070.03717.92
5.5.290.0070.07018.05
5.5.280.0070.07720.88
5.5.270.0030.05320.84
5.5.260.0070.06720.84
5.5.250.0070.04020.55
5.5.240.0230.04720.35

preferences:
60.52 ms | 401 KiB | 5 Q