3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function ech() { echo 'aaa'; } } class B extends A {} class C extends B { function new() { $this->ech(); } } $a new C(); $a->new();

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.0070.08320.29
5.6.160.0130.08020.39
5.6.150.0130.07018.15
5.6.140.0200.06018.20
5.6.130.0000.08318.18
5.6.120.0030.05321.05
5.6.110.0170.07721.00
5.6.100.0200.07020.97
5.6.90.0330.05320.95
5.6.80.0070.05320.36
5.5.300.0030.07718.08
5.5.290.0070.08317.95
5.5.280.0070.04320.75
5.5.270.0130.03320.77
5.5.260.0030.08020.79
5.5.250.0200.07020.58
5.5.240.3370.03320.16

preferences:
157.45 ms | 1398 KiB | 7 Q