3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GenClass { function __construct() { echo "Making GenClass\n"; } function __destruct() { echo "Destroying GenClass\n"; } function genInner() { throw new Exception; yield 5; } } function genOuter() { $x = (new GenClass)->genInner(); // $x is now a generator containing the only reference to a GenClass yield from $x; } genOuter()->next();

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.0120.00616.49
8.3.50.0060.00918.09
8.3.40.0040.01218.66
8.3.30.0110.01118.83
8.3.20.0000.00720.34
8.3.10.0090.00021.80
8.3.00.0050.00319.79
8.2.180.0130.01016.63
8.2.170.0110.00722.96
8.2.160.0100.00720.35
8.2.150.0050.00324.18
8.2.140.0070.00724.66
8.2.130.0040.00419.21
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0060.00618.04
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0030.00622.33
8.2.30.0070.00020.51
8.2.20.0080.00017.71
8.2.10.0040.00418.05
8.2.00.0000.00718.12
8.1.280.0130.00625.92
8.1.270.0070.01120.09
8.1.260.0050.00328.09
8.1.250.0080.00628.09
8.1.240.0170.00323.92
8.1.230.0120.00017.72
8.1.220.0020.00517.74
8.1.210.0000.01018.77
8.1.200.0000.00917.47
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0040.00420.82
8.1.150.0070.00018.80
8.1.140.0040.00419.57
8.1.130.0080.00017.61
8.1.120.0050.00317.49
8.1.110.0000.00717.41
8.1.100.0000.00817.50
8.1.90.0000.00717.35
8.1.80.0000.00817.50
8.1.70.0040.00417.38
8.1.60.0040.00417.62
8.1.50.0090.00017.56
8.1.40.0040.00417.40
8.1.30.0000.00817.48
8.1.20.0000.00717.63
8.1.10.0000.00717.62
8.1.00.0060.00317.55
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0040.00417.14
8.0.260.0060.00017.26
8.0.250.0030.00316.95
8.0.240.0000.00717.02
8.0.230.0000.00717.00
8.0.220.0040.00416.94
8.0.210.0070.00016.85
8.0.200.0000.00816.89
8.0.190.0000.00816.89
8.0.180.0000.00716.81
8.0.170.0060.00316.99
8.0.160.0040.00416.91
8.0.150.0030.00316.79
8.0.140.0070.00016.94
8.0.130.0030.00313.35
8.0.120.0030.00616.81
8.0.110.0040.00416.79
8.0.100.0040.00416.91
8.0.90.0000.00716.82
8.0.80.0090.00616.87
8.0.70.0000.00816.97
8.0.60.0000.00717.03
8.0.50.0050.00316.88
8.0.30.0070.01016.91
8.0.20.0110.00717.40
8.0.10.0040.00416.95
8.0.00.0120.00716.85
7.4.330.0050.00016.74
7.4.320.0000.00716.66
7.4.300.0030.00316.61
7.4.290.0030.00316.50
7.4.280.0050.00416.48
7.4.270.0000.00716.62
7.4.260.0070.00316.51
7.4.250.0000.00816.50
7.4.240.0020.00516.64
7.4.230.0030.00316.70
7.4.220.0090.00916.68
7.4.210.0060.00916.50
7.4.200.0030.00316.60
7.4.160.0050.01016.31
7.4.150.0060.01117.40
7.4.140.0070.01217.86
7.4.130.0080.01316.44
7.4.120.0060.01116.53
7.4.110.0140.00316.77
7.4.100.0150.00816.59
7.4.90.0040.01516.43
7.4.80.0140.00319.39
7.4.70.0100.00716.52
7.4.60.0030.01316.67
7.4.50.0140.00416.58
7.4.40.0060.01016.71
7.4.30.0080.00816.58
7.4.00.0070.00715.10
7.3.330.0030.00313.33
7.3.320.0050.00013.27
7.3.310.0050.00216.38
7.3.300.0070.00016.20
7.3.290.0030.00316.24
7.3.280.0140.00416.37
7.3.270.0090.00917.40
7.3.260.0000.01716.62
7.3.250.0070.01416.44
7.3.240.0100.00716.47
7.3.230.0070.01116.39
7.3.210.0060.01016.63
7.3.200.0100.00616.38
7.3.190.0070.01016.42
7.3.180.0030.01316.43
7.3.170.0090.01316.47
7.3.160.0060.00916.47
7.3.10.0060.00916.56
7.3.00.0040.00816.62
7.2.330.0090.00816.69
7.2.320.0140.00416.74
7.2.310.0090.00916.67
7.2.300.0060.01316.75
7.2.290.0150.00416.78
7.2.130.0030.01017.06
7.2.120.0040.00717.10
7.2.110.0040.01117.04
7.2.100.0000.01416.39
7.2.90.0070.00716.44
7.2.80.0030.00617.02
7.2.70.0080.00616.64
7.2.60.0050.00716.86
7.2.50.0100.00317.15
7.2.40.0060.00916.56
7.2.30.0090.00616.69
7.2.20.0090.00916.97
7.2.10.0030.00716.87
7.2.00.0040.01018.03
7.1.250.0090.00315.84
7.1.200.0070.00315.61
7.1.100.0030.00518.13
7.1.70.0000.00817.22
7.1.60.0110.01419.13
7.1.50.0120.00916.54
7.1.00.0100.07022.48
7.0.200.0040.00716.88
7.0.60.0000.06319.80
7.0.50.0000.07317.87
7.0.40.0100.05320.13
7.0.30.0300.07720.08
7.0.20.0370.04720.06
7.0.10.0070.08020.26
7.0.00.0000.04320.12
5.6.280.0030.06320.87
5.6.210.0070.08020.57
5.6.200.0000.04718.18
5.6.190.0030.05720.77
5.6.180.0300.05720.51
5.6.170.0300.04720.54
5.6.160.0030.04020.54
5.6.150.0100.08018.22
5.6.140.0100.08018.18
5.6.130.0030.04018.18
5.6.120.0100.08321.00
5.6.110.0030.06721.01
5.6.100.0100.05020.99
5.6.90.0130.06720.98
5.6.80.0130.06020.54
5.5.350.0100.04320.39
5.5.340.0100.06718.02
5.5.330.0100.05020.29
5.5.320.0330.07020.30
5.5.310.0230.05320.43
5.5.300.0030.05017.95
5.5.290.0000.04317.98
5.5.280.0100.06320.86
5.5.270.0170.07720.77
5.5.260.0170.07320.80
5.5.250.0100.08020.70
5.5.240.0230.05720.04

preferences:
46.08 ms | 401 KiB | 5 Q