3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = new class(string) { 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.0070.05020.46
5.6.160.0000.04320.71
5.6.150.0100.07318.15
5.6.140.0100.08018.21
5.6.130.0030.06018.14
5.6.120.0070.04721.11
5.6.110.0070.03720.99
5.6.100.0070.06721.10
5.6.90.0070.09320.97
5.6.80.0030.08320.50
5.5.300.0030.04018.03
5.5.290.0070.08017.97
5.5.280.0200.07320.80
5.5.270.0070.08320.85
5.5.260.0100.04720.86
5.5.250.0130.07720.68
5.5.240.0230.06320.15

preferences:
135.55 ms | 1394 KiB | 7 Q