3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generator = function ($bytes) { for ($i = 0; $i < $bytes; $i++) { yield '.'; } }; var_dump( get_class_methods($generator(10)) );

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.0100.01016.63
8.3.50.0150.00316.36
8.3.40.0110.00718.54
8.3.30.0040.01118.79
8.3.20.0070.00020.23
8.3.10.0080.00023.77
8.3.00.0030.00623.52
8.2.170.0040.01122.96
8.2.160.0090.00619.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.61
8.2.120.0070.00026.35
8.2.110.0030.00721.03
8.2.100.0080.00418.03
8.2.90.0100.00019.26
8.2.80.0030.00517.97
8.2.70.0030.00617.38
8.2.60.0080.00018.16
8.2.50.0030.00718.09
8.2.40.0040.00420.47
8.2.30.0030.00319.35
8.2.20.0040.00417.73
8.2.10.0000.00718.07
8.2.00.0070.00017.93
8.1.270.0070.00721.96
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00320.94
8.1.230.0120.00017.52
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0040.00420.81
8.1.150.0050.00218.92
8.1.140.0080.00019.58
8.1.130.0000.00717.63
8.1.120.0030.00317.38
8.1.110.0000.00717.48
8.1.100.0040.00717.49
8.1.90.0000.00717.38
8.1.80.0000.00717.45
8.1.70.0000.00717.38
8.1.60.0040.00817.51
8.1.50.0080.00017.57
8.1.40.0030.00517.41
8.1.30.0000.00917.57
8.1.20.0070.00017.59
8.1.10.0000.00817.57
8.1.00.0070.00017.52
8.0.300.0050.00218.77
8.0.290.0000.00716.58
8.0.280.0030.00318.41
8.0.270.0030.00317.14
8.0.260.0030.00317.25
8.0.250.0050.00316.90
8.0.240.0080.00016.90
8.0.230.0000.00716.93
8.0.220.0080.00016.82
8.0.210.0070.00016.79
8.0.200.0000.00816.91
8.0.190.0040.00416.90
8.0.180.0030.00316.88
8.0.170.0020.00516.77
8.0.160.0000.00716.98
8.0.150.0030.00316.84
8.0.140.0040.00416.86
8.0.130.0030.00313.28
8.0.120.0040.00416.77
8.0.110.0040.00416.87
8.0.100.0000.00716.95
8.0.90.0040.00416.69
8.0.80.0060.01816.90
8.0.70.0000.00716.86
8.0.60.0040.00416.84
8.0.50.0040.00416.85
8.0.30.0080.01017.14
8.0.20.0120.01017.40
8.0.10.0030.00617.02
8.0.00.0130.00516.77
7.4.330.0050.00016.71
7.4.320.0030.00316.59
7.4.300.0030.00316.45
7.4.290.0070.00016.52
7.4.280.0030.00616.60
7.4.270.0030.00316.36
7.4.260.0000.00716.58
7.4.250.0000.00716.49
7.4.240.0040.00416.52
7.4.230.0000.00716.45
7.4.220.0140.00716.63
7.4.210.0110.00416.60
7.4.200.0030.00516.69
7.4.160.0120.00416.52
7.4.150.0120.00817.40
7.4.140.0090.00917.86
7.4.130.0090.01116.58
7.4.120.0120.00816.45
7.4.110.0140.00316.68
7.4.100.0030.01616.36
7.4.90.0090.00916.59
7.4.80.0160.00419.39
7.4.70.0060.01116.52
7.4.60.0060.01216.53
7.4.50.0120.00316.44
7.4.40.0090.00916.57
7.4.30.0070.01016.58
7.4.00.0080.00815.05
7.3.330.0020.00213.20
7.3.320.0050.00013.24
7.3.310.0030.00316.23
7.3.300.0030.00516.25
7.3.290.0110.00716.24
7.3.280.0070.00816.23
7.3.270.0120.00817.40
7.3.260.0100.00716.34
7.3.250.0100.01016.42
7.3.240.0100.00616.34
7.3.230.0110.00716.39
7.3.210.0120.01216.29
7.3.200.0080.00816.42
7.3.190.0080.01016.33
7.3.180.0100.00716.13
7.3.170.0110.01116.27
7.3.160.0040.01116.44
7.2.330.0070.01116.61
7.2.320.0120.00616.46
7.2.310.0090.00916.43
7.2.300.0120.00616.27
7.2.290.0030.01316.54
7.2.60.0000.01216.89
7.2.00.0000.01119.38
7.1.200.0060.00615.82
7.1.100.0040.00717.96
7.1.70.0000.00817.06
7.1.60.0140.01019.40
7.1.50.0060.01616.58
7.1.00.0030.07722.53
7.0.200.0280.01114.46
7.0.60.0230.06319.94
7.0.50.0070.07717.85
7.0.40.0070.08020.18
7.0.30.0330.07720.16
7.0.20.0300.08320.10
7.0.10.0030.08020.32
7.0.00.0130.08020.16
5.6.280.0030.06021.12
5.6.210.0130.07320.77
5.6.200.0130.08018.25
5.6.190.0130.08320.64
5.6.180.0300.08020.56
5.6.170.0300.06720.48
5.6.160.0130.08020.51
5.6.150.0100.06318.19
5.6.140.0030.09018.15
5.6.130.0070.08018.18
5.6.120.0130.07721.10
5.6.110.0070.04720.96
5.6.100.0070.08720.99
5.6.90.0130.08321.00
5.6.80.0030.07020.51
5.5.350.0170.08020.52
5.5.340.0170.07017.99
5.5.330.0070.04020.29
5.5.320.0230.04320.35
5.5.310.0370.05320.38
5.5.300.0030.04018.08
5.5.290.0170.06717.95
5.5.280.0100.08320.96
5.5.270.0170.06020.80
5.5.260.0130.06020.71
5.5.250.0100.08020.69
5.5.240.0170.04020.15

preferences:
67 ms | 400 KiB | 5 Q