3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __contruct() {} } class B extends A { private function __contruct() {} public static function create(){ return new self(); } }

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.30.0200.05320.07
7.0.20.0200.08320.07
7.0.10.0100.07720.24
7.0.00.0030.04320.20
5.6.180.0370.04020.67
5.6.170.0270.04720.44
5.6.160.0030.05020.54
5.6.150.0070.07718.18
5.6.140.0030.08318.15
5.6.130.0070.06318.17
5.6.120.0070.08720.99
5.6.110.0070.04021.14
5.6.100.0170.05321.11
5.6.90.0130.06021.13
5.6.80.0000.04020.38
5.5.320.0230.06020.37
5.5.310.0330.07020.27
5.5.300.0230.06318.09
5.5.290.0030.04017.96
5.5.280.0070.07720.88
5.5.270.0070.08320.98
5.5.260.0100.06720.75
5.5.250.0030.05020.61
5.5.240.0230.04320.27

preferences:
149.7 ms | 1183 KiB | 7 Q