3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test1() { yield from ['a']; } function test2() { yield from test1(); } foreach(test2() as $test) { echo $test; }

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.0150.00716.38
8.3.50.0040.01117.93
8.3.40.0150.00618.99
8.3.30.0090.00618.69
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.180.0110.00725.92
8.2.170.0040.01118.82
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0070.00021.18
8.2.110.0070.00419.30
8.2.100.0110.00017.78
8.2.90.0000.00717.75
8.2.80.0030.00617.97
8.2.70.0040.00417.62
8.2.60.0000.00818.04
8.2.50.0030.00518.07
8.2.40.0050.00319.94
8.2.30.0000.00817.97
8.2.20.0000.00717.96
8.2.10.0040.00420.97
8.2.00.0020.00519.17
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00019.14
8.1.230.0030.00717.77
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00917.47
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0040.00418.75
8.1.150.0000.00718.88
8.1.140.0000.00818.88
8.1.130.0000.00720.04
8.1.120.0040.00417.42
8.1.110.0050.00317.43
8.1.100.0030.00517.42
8.1.90.0030.00317.48
8.1.80.0070.00417.43
8.1.70.0000.00717.32
8.1.60.0110.00017.57
8.1.50.0080.00017.39
8.1.40.0000.00817.56
8.1.30.0050.00317.66
8.1.20.0060.00317.54
8.1.10.0000.01117.50
8.1.00.0040.00417.42
8.0.300.0030.00518.77
8.0.290.0000.00716.63
8.0.280.0030.00318.34
8.0.270.0030.00318.00
8.0.260.0000.00818.45
8.0.250.0070.00016.96
8.0.240.0050.00216.93
8.0.230.0030.00316.81
8.0.220.0040.00416.77
8.0.210.0030.00316.90
8.0.200.0040.00416.93
8.0.190.0030.00316.83
8.0.180.0050.00316.91
8.0.170.0060.00316.88
8.0.160.0040.00416.87
8.0.150.0000.00716.81
8.0.140.0070.00016.90
8.0.130.0030.00313.24
8.0.120.0050.00316.82
8.0.110.0000.00816.86
8.0.100.0080.00016.75
8.0.90.0040.00416.88
8.0.80.0050.01316.85
8.0.70.0000.00716.70
8.0.60.0050.00216.70
8.0.50.0070.00016.75
8.0.30.0130.00617.04
8.0.20.0090.00917.06
8.0.10.0040.00416.95
8.0.00.0080.01316.70
7.4.330.0020.00215.55
7.4.320.0000.00816.44
7.4.300.0050.00216.53
7.4.290.0080.00016.41
7.4.280.0000.00816.52
7.4.270.0040.00416.38
7.4.260.0050.00013.23
7.4.250.0070.00016.46
7.4.240.0030.00516.54
7.4.230.0040.00416.60
7.4.220.0050.00316.44
7.4.210.0080.00916.55
7.4.200.0030.00316.53
7.4.130.0110.00616.45
7.4.120.0110.01116.50
7.4.110.0060.01316.55
7.4.100.0140.00616.65
7.4.90.0150.00316.42
7.4.80.0030.01719.39
7.4.70.0060.01016.55
7.4.60.0150.00816.43
7.4.50.0100.01216.46
7.4.40.0100.01216.50
7.4.30.0130.00816.40
7.4.20.0170.00516.54
7.4.10.0130.00816.37
7.4.00.0100.00616.46
7.3.330.0050.00216.23
7.3.320.0000.00713.19
7.3.310.0070.00016.33
7.3.300.0030.00316.32
7.3.290.0050.01116.24
7.3.280.0100.00316.32
7.3.260.0100.00716.32
7.3.240.0110.00816.43
7.3.230.0100.00716.47
7.3.210.0090.00916.41
7.3.200.0070.01116.40
7.3.190.0150.00016.45
7.3.180.0150.00616.43
7.3.170.0130.00916.44
7.3.160.0160.00516.37
7.3.150.0160.00516.52
7.3.140.0110.00916.31
7.3.130.0130.00716.47
7.3.120.0100.01016.47
7.3.110.0160.00716.33
7.3.100.0120.00816.39
7.3.90.0160.00516.41
7.3.80.0130.00716.28
7.3.70.0110.01216.25
7.3.60.0110.00916.27
7.3.50.0140.00816.35
7.3.40.0130.00816.36
7.3.30.0110.00916.29
7.3.20.0140.00917.58
7.3.10.0140.00517.67
7.3.00.0150.00617.59
7.2.330.0130.00416.40
7.2.320.0160.00616.70
7.2.310.0140.00916.52
7.2.300.0110.01016.67
7.2.290.0150.00716.46
7.2.280.0130.00816.61
7.2.270.0140.00816.57
7.2.260.0090.01116.64
7.2.250.0150.01016.59
7.2.240.0110.01016.61
7.2.230.0100.01216.55
7.2.220.0100.01016.55
7.2.210.0130.00916.54
7.2.200.0130.01016.53
7.2.190.0100.01016.48
7.2.180.0140.00716.48
7.2.170.0170.00716.48
7.2.160.0120.01116.47
7.2.150.0110.01117.83
7.2.140.0140.00917.73
7.2.130.0150.01017.83
7.2.120.0150.00517.69
7.2.110.0130.00917.72
7.2.100.0150.00717.84
7.2.90.0150.00817.79
7.2.80.0140.00817.82
7.2.70.0160.00817.86
7.2.60.0160.00717.83
7.2.50.0190.00817.81
7.2.40.0140.01117.71
7.2.30.0180.00317.79
7.2.20.0130.00917.76
7.2.10.0150.00917.72
7.2.00.0080.01017.78

preferences:
34.83 ms | 400 KiB | 5 Q