3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $extend = "Foo" var_dump(new class(10) extends $extend { private $num; public function __construct($num) { $this->num = $num; } });

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.20.0300.06720.09
7.0.10.0100.05020.15
7.0.00.0100.06020.05
5.6.170.0230.05020.41
5.6.160.0200.07320.56
5.6.150.0000.04318.17
5.6.140.0070.04318.22
5.6.130.0070.07718.19
5.6.120.0130.07721.12
5.6.110.0070.08021.11
5.6.100.0000.04721.02
5.6.90.0130.08021.10
5.6.80.0100.07320.45
5.5.310.0300.07720.37
5.5.300.0070.08017.96
5.5.290.0000.04317.98
5.5.280.0100.06320.87
5.5.270.0100.07320.76
5.5.260.0170.07720.68
5.5.250.0030.04020.46
5.5.240.0170.04720.07

preferences:
144.97 ms | 1394 KiB | 7 Q