3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface testi { public function getName() : string; } class A { public $name; public __construct(testi $testi) { $this->name = $testi->getName(); } } $A = new A(new class implements testi { public function getName() : string { return "HOHOI"; } } ); var_dump($A->name);

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.0130.08020.07
5.6.160.0130.06020.54
5.6.150.0070.05018.19
5.6.140.0070.06718.19
5.6.130.0070.07718.27
5.6.120.0130.08020.98
5.6.110.0170.06021.09
5.6.100.0100.08321.00
5.6.90.0100.05321.04
5.6.80.0070.07720.54
5.5.300.0030.07718.08
5.5.290.0100.08017.99
5.5.280.0130.07720.88
5.5.270.0070.08320.86
5.5.260.0170.06320.77
5.5.250.0100.08320.61
5.5.240.0170.05720.12

preferences:
144.71 ms | 1394 KiB | 7 Q