3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { yield from [ ['a'] ]; yield from [ ['b'] ]; } foreach (foo() as $x) { var_dump($x); }

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.5.90.0020.00616.76
8.5.80.0120.00416.85
8.5.70.0090.00418.39
8.5.60.0130.00516.60
8.5.50.0080.01016.60
8.5.30.0130.00418.07
8.5.20.0080.00920.26
8.5.10.0120.00716.67
8.5.00.0130.00922.73
8.4.240.0150.00919.35
8.4.230.0090.01019.43
8.4.220.0090.00819.48
8.4.210.0080.00921.39
8.4.180.0110.01222.07
8.4.170.0100.01123.92
8.4.160.0150.00823.70
8.4.150.0070.00516.84
8.4.140.0130.00817.71
8.4.130.0360.01017.40
8.4.120.0380.00817.44
8.4.110.0390.00817.47
8.4.100.0310.01517.37
8.4.90.0380.01017.42
8.4.80.0440.01017.55
8.4.70.0440.00917.75
8.4.60.0410.00817.50
8.4.50.0370.00917.68
8.4.40.0410.00917.71
8.4.30.0430.00917.39
8.4.20.0470.01117.23
8.4.10.0400.00917.36
8.3.320.0130.00818.45
8.3.310.0140.00618.43
8.3.300.0070.01518.90
8.3.290.0110.00918.34
8.3.280.0100.01018.09
8.3.270.0110.01016.59
8.3.260.0370.00716.44
8.3.250.0380.00716.38
8.3.240.0380.00916.60
8.3.230.0370.01116.40
8.3.220.0440.00816.23
8.3.210.0420.01116.46
8.3.200.0360.00916.09
8.3.190.0340.01016.39
8.3.180.0370.00816.48
8.3.170.0360.01216.33
8.3.160.0400.00916.23
8.3.150.0390.00816.19
8.3.140.0350.01216.52
8.3.130.0320.01416.35
8.3.120.0320.01016.42
8.3.110.0340.00716.17
8.3.100.0390.00816.42
8.3.90.0430.00516.45
8.3.80.0440.00916.50
8.3.70.0380.01116.25
8.3.60.0460.00716.14
8.3.50.0410.00616.46
8.3.40.0390.00817.63
8.3.30.0330.00617.23
8.3.20.0300.01317.18
8.3.10.0320.00717.30
8.3.00.0380.00917.22
8.2.320.0090.01218.11
8.2.310.0040.00418.13
8.2.300.0110.01018.10
8.2.290.0390.00716.13
8.2.280.0320.00716.58
8.2.270.0390.00616.37
8.2.260.0320.00816.31
8.2.250.0330.00716.38
8.2.240.0310.01016.26
8.2.230.0300.01016.41
8.2.220.0320.00716.11
8.2.210.0320.00716.49
8.2.200.0290.01016.42
8.2.190.0320.01016.55
8.2.180.0410.00716.18
8.2.170.0380.01417.50
8.2.160.0380.00817.64
8.2.150.0340.00717.47
8.2.140.0350.00817.45
8.2.130.0340.00917.25
8.2.120.0380.00717.31
8.2.110.0410.00917.55
8.2.100.0350.01017.29
8.2.90.0350.00717.37
8.2.80.0350.00917.49
8.2.70.0320.00917.42
8.2.60.0290.01117.52
8.2.50.0370.01117.36
8.2.40.0330.00517.43
8.2.30.0320.00717.38
8.2.20.0290.01017.28
8.2.10.0290.01017.49
8.2.00.0350.00717.63
8.1.340.0130.00717.64

preferences:
50.41 ms | 890 KiB | 5 Q