3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function y() { return (object)array("was"=>'da los')); } function x() { return array("was"=>'da los')); } } $a = new A(); var_dump($a->x()['was'], $a->x()->was);

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.00.0030.04320.24
5.6.160.0030.08320.39
5.6.150.0100.08318.19
5.6.140.0100.07318.28
5.6.130.0100.07318.29
5.6.120.0030.06020.98
5.6.110.0070.07721.13
5.6.100.0100.06020.89
5.6.90.0070.07321.00
5.6.80.0070.07320.48
5.5.300.0030.08317.99
5.5.290.0000.05318.03
5.5.280.0070.05020.68
5.5.270.0030.04720.65
5.5.260.0070.04020.96
5.5.250.0070.07320.58
5.5.240.0200.07020.25

preferences:
134.93 ms | 1398 KiB | 7 Q