3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function first() { return [ 'first' => function() {return 'ololo'}, ]; } } $a = new A(); var_dump($a->first()['first']);

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.10.0130.08020.12
7.0.00.0130.06720.36
5.6.160.0070.04020.52
5.6.150.0100.07718.19
5.6.140.0000.05718.16
5.6.130.0130.05318.15
5.6.120.0230.07721.04
5.6.110.0130.07321.05
5.6.100.0070.06720.99
5.6.90.0070.08321.09
5.6.80.0070.08320.52
5.5.300.0130.06017.98
5.5.290.0100.04318.03
5.5.280.0100.05320.81
5.5.270.0100.05020.81
5.5.260.0030.06020.87
5.5.250.0070.08320.55
5.5.240.0070.08320.24

preferences:
139.5 ms | 1394 KiB | 7 Q