3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { yield 'a'; yield 'b'; yield 'c'; } $gen1 = foo(); $gen2 = clone $gen1; var_dump(current($gen1)); var_dump(current($gen2)); $gen3 = clone $gen2; var_dump(current($gen3));

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.0130.00716.38
8.3.50.0110.00416.34
8.3.40.0110.00418.82
8.3.30.0040.01118.89
8.3.20.0070.00020.34
8.3.10.0080.00021.92
8.3.00.0090.00017.64
8.2.180.0060.01216.63
8.2.170.0090.00622.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00321.18
8.2.120.0080.00026.35
8.2.110.0060.00322.26
8.2.100.0090.00318.03
8.2.90.0080.00018.95
8.2.80.0000.00818.03
8.2.70.0040.00717.35
8.2.60.0000.00817.91
8.2.50.0000.00818.10
8.2.40.0080.00022.27
8.2.30.0040.00420.79
8.2.20.0070.00017.86
8.2.10.0030.00617.96
8.2.00.0030.00517.99
8.1.280.0140.00725.92
8.1.270.0080.00023.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00617.23
8.1.230.0030.00719.08
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0040.00418.93
8.1.150.0040.00420.48
8.1.140.0070.00019.45
8.1.130.0000.00718.74
8.1.120.0030.00317.39
8.1.110.0000.00817.39
8.1.100.0050.00317.32
8.1.90.0040.00417.43
8.1.80.0050.00217.43
8.1.70.0030.00517.29
8.1.60.0000.00817.45
8.1.50.0000.00717.52
8.1.40.0020.00517.39
8.1.30.0040.00417.57
8.1.20.0040.00417.61
8.1.10.0040.00417.58
8.1.00.0000.00717.46
8.0.300.0070.00018.77
8.0.290.0050.00316.58
8.0.280.0040.00418.43
8.0.270.0080.00017.20
8.0.260.0040.00416.74
8.0.250.0000.00816.85
8.0.240.0090.00216.97
8.0.230.0050.00316.99
8.0.220.0030.00316.89
8.0.210.0070.00016.85
8.0.200.0030.00317.01
8.0.190.0000.00916.84
8.0.180.0020.00516.91
8.0.170.0030.00516.91
8.0.160.0040.00416.98
8.0.150.0030.00316.84
8.0.140.0040.00416.80
8.0.130.0050.00013.28
8.0.120.0020.00516.89
8.0.110.0050.00216.78
8.0.100.0000.00716.77
8.0.90.0000.00716.90
8.0.80.0190.00016.81
8.0.70.0000.00816.75
8.0.60.0000.00716.73
8.0.50.0000.00816.98
8.0.30.0100.00817.14
8.0.20.0100.00817.40
8.0.10.0040.00417.12
8.0.00.0110.01216.67
7.4.330.0000.00515.55
7.4.320.0060.00016.40
7.4.300.0030.00316.60
7.4.290.0120.00016.60
7.4.280.0030.00516.63
7.4.270.0030.00316.43
7.4.260.0030.00313.26
7.4.250.0040.00416.48
7.4.240.0040.00416.46
7.4.230.0030.00316.57
7.4.220.0120.00616.54
7.4.210.0040.01216.62
7.4.200.0030.00316.68
7.4.160.0100.00816.50
7.4.150.0150.00617.40
7.4.140.0110.00717.86
7.4.130.0120.00616.55
7.4.120.0120.00716.50
7.4.110.0100.00716.54
7.4.100.0160.00316.54
7.4.90.0140.00316.59
7.4.80.0100.01019.39
7.4.70.0090.00616.55
7.4.60.0130.00316.49
7.4.50.0100.00716.31
7.4.40.0160.00016.47
7.4.30.0030.01316.32
7.4.00.0080.00815.09
7.3.330.0000.00613.19
7.3.320.0000.00613.22
7.3.310.0030.00316.37
7.3.300.0030.00616.23
7.3.290.0030.00316.24
7.3.280.0130.00716.36
7.3.270.0080.00917.40
7.3.260.0090.00916.38
7.3.250.0090.00816.49
7.3.240.0120.00716.49
7.3.230.0060.01316.41
7.3.210.0030.01316.36
7.3.200.0120.00616.43
7.3.190.0070.01416.48
7.3.180.0100.00716.34
7.3.170.0160.00616.51
7.3.160.0120.00916.47
7.2.330.0120.00616.61
7.2.320.0100.01316.74
7.2.310.0030.01316.66
7.2.300.0090.01216.36
7.2.290.0100.00716.33
7.2.60.0100.00316.94
7.2.00.0000.01519.40
7.1.200.0030.01015.63
7.1.100.0040.00818.14
7.1.70.0120.00017.09
7.1.60.0160.01034.94
7.1.50.0300.00734.79
7.1.40.0210.01834.27
7.1.30.0180.01634.57
7.1.20.0150.01234.52
7.1.10.0060.00916.46
7.1.00.0060.00616.40
7.0.200.0000.01716.82
7.0.190.0030.01316.58
7.0.180.0060.01416.07
7.0.170.0060.00916.03
7.0.160.0000.01316.39
7.0.150.0130.00316.39
7.0.140.0040.00816.12
7.0.130.0030.01316.50
7.0.120.0080.00516.46
7.0.110.0000.01516.31
7.0.100.0120.00316.18
7.0.90.0060.00816.20
7.0.80.0000.01316.21
7.0.70.0030.01216.28
7.0.60.0120.00316.22
7.0.50.0060.01016.04
7.0.40.0040.01116.33
7.0.30.0100.00416.16
7.0.20.0040.01116.47
7.0.10.0060.00616.26
7.0.00.0030.01016.27

preferences:
57.33 ms | 401 KiB | 5 Q