3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = {}; $var2 = array('foo', 'bar'); function test($var1, $var2) { return ($var->$var2)[0]; }

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.0230.08020.06
7.0.10.0030.06020.26
7.0.00.0030.05020.11
5.6.170.0200.04320.51
5.6.160.0130.04720.54
5.6.150.0030.08018.18
5.6.140.0170.07318.18
5.6.130.0100.07018.15
5.6.120.0100.03721.03
5.6.110.0070.03721.00
5.6.100.0130.07721.11
5.6.90.0130.03321.12
5.6.80.0100.07320.38
5.5.310.0270.06720.30
5.5.300.0070.08018.02
5.5.290.0030.07317.98
5.5.280.0170.07720.76
5.5.270.0100.08020.76
5.5.260.0000.08720.92
5.5.250.0130.03320.58
5.5.240.0230.06020.04

preferences:
134.17 ms | 1394 KiB | 7 Q