3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): Traversable { yield 'a'; yield 'b'; yield 'c'; } $str = ''; foreach (foo() as $val) { $str .= $val; } echo $str;

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.4.20.0090.01319.60

preferences:
135.3 ms | 1005 KiB | 7 Q