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.0370.07020.22
7.0.10.0100.04020.16
7.0.00.0030.06320.23
5.6.170.0200.08320.47
5.6.160.0030.05320.47
5.6.150.0030.04018.12
5.6.140.0030.04018.27
5.6.130.0100.04318.21
5.6.120.0130.08021.03
5.6.110.0100.07021.00
5.6.100.0100.04020.88
5.6.90.0030.09321.07
5.6.80.0230.06020.39
5.5.310.0330.07020.20
5.5.300.0030.05318.08
5.5.290.0000.04317.97
5.5.280.0100.08020.90
5.5.270.0030.06720.77
5.5.260.0200.07320.96
5.5.250.0000.04320.69
5.5.240.0200.07020.23

preferences:
135.65 ms | 1386 KiB | 7 Q