3v4l.org

run code in 300+ PHP versions simultaneously
<?php function genn() { $ar = [214=>22,22=>33=>33,213=>342]; foreach ($ar as $key => $value) { yield $ar[$key]; } } foreach (genn() as $val) { echo $val; }

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)
7.0.20.0300.08020.24
7.0.10.0100.08320.26
7.0.00.0170.06720.22
5.6.170.0270.03020.45
5.6.160.0100.05320.51
5.6.150.0070.08018.29
5.6.140.0130.07718.25
5.6.130.0030.04018.18
5.6.120.0030.04320.98
5.6.110.0130.07721.09
5.6.100.0100.04321.13
5.6.90.0170.06721.00
5.6.80.0170.08020.38
5.5.310.0300.07020.27
5.5.300.0000.05318.08
5.5.290.0000.08318.02
5.5.280.0030.04020.88
5.5.270.0100.07720.87
5.5.260.0070.04320.77
5.5.250.0100.07720.70
5.5.240.0070.06720.29

preferences:
143.37 ms | 1394 KiB | 7 Q