3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { yield; } $x = foo(); $x->throw(new stdclass);

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.0040.01116.88
8.3.50.0070.00716.25
8.3.40.0120.00618.84
8.3.30.0030.01218.85
8.3.20.0080.00020.20
8.3.10.0040.00421.85
8.3.00.0040.00419.68
8.2.180.0100.01318.56
8.2.170.0140.00422.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0000.01124.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0100.00020.35
8.2.100.0030.00917.60
8.2.90.0060.00318.22
8.2.80.0030.00917.97
8.2.70.0030.00617.63
8.2.60.0000.00817.68
8.2.50.0040.00418.07
8.2.40.0040.00421.13
8.2.30.0000.00819.66
8.2.20.0000.00717.60
8.2.10.0040.00417.99
8.2.00.0000.00717.97
8.1.270.0040.00420.19
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.14
8.1.230.0110.00020.85
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00717.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0070.00022.19
8.1.150.0000.00718.78
8.1.140.0030.00517.40
8.1.130.0030.00517.61
8.1.120.0030.00317.31
8.1.110.0050.00217.42
8.1.100.0000.00717.33
8.1.90.0050.00217.29
8.1.80.0000.00917.27
8.1.70.0000.00717.39
8.1.60.0000.00917.60
8.1.50.0040.00417.49
8.1.40.0000.00717.48
8.1.30.0040.00417.66
8.1.20.0060.00317.69
8.1.10.0000.00717.46
8.1.00.0000.00817.39
8.0.300.0040.00420.08
8.0.290.0000.00716.63
8.0.280.0000.00718.38
8.0.270.0000.00717.19
8.0.260.0040.00417.13
8.0.250.0030.00516.84
8.0.240.0040.00416.91
8.0.230.0030.00316.91
8.0.220.0030.00316.86
8.0.210.0040.00416.82
8.0.200.0000.00716.87
8.0.190.0090.00016.99
8.0.180.0000.00716.89
8.0.170.0000.00816.93
8.0.160.0030.00616.87
8.0.150.0030.00316.72
8.0.140.0050.00216.73
8.0.130.0030.00313.36
8.0.120.0040.00416.71
8.0.110.0080.00016.89
8.0.100.0040.00416.72
8.0.90.0030.00516.95
8.0.80.0100.01016.78
8.0.70.0000.00716.75
8.0.60.0000.00816.90
8.0.50.0040.00416.84
8.0.30.0080.01217.04
8.0.20.0060.01417.40
8.0.10.0070.00016.96
8.0.00.0130.00816.84
7.4.330.0030.00315.08
7.4.320.0030.00616.52
7.4.300.0000.00616.64
7.4.290.0000.00716.61
7.4.280.0090.00016.50
7.4.270.0000.00616.49
7.4.260.0000.00716.61
7.4.250.0030.00516.49
7.4.240.0050.00216.53
7.4.230.0030.00316.44
7.4.220.0110.00716.55
7.4.210.0090.00616.60
7.4.200.0040.00416.34
7.4.160.0030.01216.43
7.4.150.0140.00317.40
7.4.140.0150.00617.86
7.4.130.0170.00516.50
7.4.120.0050.01116.56
7.4.110.0090.00616.41
7.4.100.0100.00716.46
7.4.90.0120.00616.42
7.4.80.0080.01419.39
7.4.70.0070.01016.61
7.4.60.0100.00716.52
7.4.50.0080.00016.59
7.4.40.0060.01016.51
7.4.30.0120.01116.69
7.4.00.0070.01014.66
7.3.330.0000.00513.16
7.3.320.0060.00013.14
7.3.310.0070.00016.16
7.3.300.0060.00016.17
7.3.290.0080.00716.31
7.3.280.0100.01016.30
7.3.270.0100.00717.40
7.3.260.0070.01016.52
7.3.250.0100.00916.41
7.3.240.0090.00916.59
7.3.230.0110.00716.57
7.3.210.0070.01016.41
7.3.200.0160.00019.39
7.3.190.0060.01216.55
7.3.180.0060.01616.65
7.3.170.0110.01116.30
7.3.160.0120.00616.60
7.2.330.0070.01116.66
7.2.320.0100.01316.32
7.2.310.0080.00816.67
7.2.300.0110.01116.50
7.2.290.0100.01316.40
7.2.60.0120.00316.84
7.2.00.0060.00619.43
7.1.200.0130.00015.66
7.1.100.0250.00617.94
7.1.70.0040.01117.03
7.1.60.0150.01120.03
7.1.50.0030.02016.82
7.1.00.0030.07722.45
7.0.200.0000.00716.61
7.0.60.0130.08319.89
7.0.50.0070.07017.89
7.0.40.0070.07720.11
7.0.30.0500.07720.18
7.0.20.0200.04320.30
7.0.10.0000.05020.09
7.0.00.0070.06320.18
5.6.280.0070.03020.89
5.6.210.0200.07320.53
5.6.200.0000.04318.29
5.6.190.0070.04020.45
5.6.180.0230.06320.58
5.6.170.0230.07720.50
5.6.160.0000.05320.54
5.6.150.0030.04018.18
5.6.140.0000.04718.15
5.6.130.0100.07718.26
5.6.120.0070.05721.02
5.6.110.0000.08721.03
5.6.100.0070.08721.11
5.6.90.0170.05321.11
5.6.80.0000.04020.50
5.6.70.4030.03320.41
5.5.350.0270.05020.46
5.5.340.0070.03718.01
5.5.330.0200.05320.28
5.5.320.0100.04020.28
5.5.310.0330.07720.36
5.5.300.0100.07718.03
5.5.290.0030.04018.09
5.5.280.0100.08020.77
5.5.270.0030.06020.86
5.5.260.0130.07320.96
5.5.250.0070.06720.67
5.5.240.0300.05720.37
5.4.450.0800.05719.59
5.4.440.1000.04319.21
5.4.430.0900.05319.54
5.4.420.0730.05319.57
5.4.410.0900.06019.45
5.4.400.0970.04719.20
5.4.390.0830.05318.98
5.4.380.0730.05319.21
5.4.370.0730.05019.15
5.4.360.0730.06019.25
5.4.350.0830.05019.15
5.4.340.1000.06319.12
5.4.320.1000.09319.35
5.4.310.0830.06019.26
5.4.300.0830.05719.25
5.4.290.0670.05319.24
5.4.280.0730.05019.14
5.4.270.0800.05719.25
5.4.260.0900.05718.84
5.4.250.0770.05719.14
5.4.240.0930.06319.14
5.4.230.0870.04318.97
5.4.220.0770.05018.86
5.4.210.0870.05719.18
5.4.200.0730.05016.87
5.4.190.0770.04319.08
5.4.180.0670.05719.13
5.4.170.0870.04319.14
5.4.160.0830.06719.30
5.4.150.0670.06019.00
5.4.140.0730.05316.50
5.4.130.0900.04716.48
5.4.120.0900.05016.49
5.4.110.0730.04316.69
5.4.100.0670.05316.52
5.4.90.0770.04716.50
5.4.80.0670.05016.31
5.4.70.0700.06016.25
5.4.60.0770.04716.49
5.4.50.0870.04716.50
5.4.40.0730.05016.29
5.4.30.0830.03716.28
5.4.20.0700.06016.29
5.4.10.0770.04716.28
5.4.00.0770.05015.77

preferences:
64.34 ms | 400 KiB | 5 Q