3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = new class(string $name) { private $name; function __construct(string $name) { $this->name = $name; } public function getName() : string { return $this->name; } }; $B = new $A('Matti'); $C = new $A('Pekka'); var_dump($B === $C);

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.0170.08320.18
5.6.160.0030.04020.50
5.6.150.0070.05018.25
5.6.140.0070.07018.14
5.6.130.0030.08018.28
5.6.120.0070.08321.00
5.6.110.0070.04020.98
5.6.100.0130.06021.11
5.6.90.0200.07020.96
5.6.80.0130.06020.40
5.5.300.0130.07718.07
5.5.290.0070.05017.95
5.5.280.0100.06020.98
5.5.270.0070.06020.75
5.5.260.0170.06020.72
5.5.250.0170.07320.58
5.5.240.0200.07020.36

preferences:
143.08 ms | 1394 KiB | 7 Q