3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen($a) { $b = yield $a; yield $a + $b + $1; } function yf() { yield from gen(1); yield from gen(4); } $g = yf(); $g->current(); $g->raise(new Exception("Whoa there lassie"));

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)
5.6.150.0070.05718.25
5.6.140.0100.07018.29
5.6.130.0100.07718.18
5.6.120.0130.07721.12
5.6.110.0070.04020.89
5.6.100.0070.03720.89
5.6.90.0070.05720.98
5.6.80.0070.07320.51
5.5.300.0070.03718.02
5.5.290.0070.04717.98
5.5.280.0100.04020.77
5.5.270.0000.04320.98
5.5.260.0170.06720.96
5.5.250.0070.06720.66
5.5.240.0230.07020.27

preferences:
133.31 ms | 941 KiB | 8 Q