3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo['bar']['baz'] = 'foo'; foreach($foo['bar'] ?: as &$val) { $val = 'FOO'; } var_dump($foo);

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.07320.21
7.0.10.0070.08320.19
7.0.00.0000.04720.06
5.6.170.0200.05020.45
5.6.160.0030.05020.44
5.6.150.0070.07318.16
5.6.140.0030.04718.19
5.6.130.0030.07318.18
5.6.120.0130.07321.14
5.6.110.0130.08020.99
5.6.100.0070.06021.08
5.6.90.0030.09321.11
5.6.80.0100.07320.28
5.5.310.0230.07020.50
5.5.300.0030.04717.98
5.5.290.0070.07317.98
5.5.280.0030.05020.68
5.5.270.0030.06020.86
5.5.260.0000.06020.64
5.5.250.0070.08320.57
5.5.240.0230.07020.03

preferences:
146.38 ms | 1394 KiB | 7 Q