3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $foo = array(); return $foo['bla'] = array('test' => 'ok') } 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.0270.05020.33
7.0.10.0070.04320.37
7.0.00.0100.06020.08
5.6.170.0170.04320.47
5.6.160.0070.08320.47
5.6.150.0170.07018.18
5.6.140.0070.08318.14
5.6.130.0070.08018.12
5.6.120.0130.07321.02
5.6.110.0070.08721.00
5.6.100.0170.07321.11
5.6.90.0030.07720.98
5.6.80.0100.07320.51
5.5.310.0100.04720.35
5.5.300.0070.07717.92
5.5.290.0070.04718.05
5.5.280.0100.06320.85
5.5.270.0030.09020.73
5.5.260.0100.08320.76
5.5.250.0100.06720.75
5.5.240.0070.03320.27

preferences:
139.72 ms | 1394 KiB | 7 Q