3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Concrete { public $a = null; protected function foo(); } class Bar { } abstract class AbsConcrete implements Concrete { abstract protected function foo(); } class Customer extends AbsConcrete { public function init() { echo "init\n"; } public function foo( Bar $me = null, Bar $lala = null ) { echo "foo\n"; } } $customer = new Customer; $customer->init(); $customer->foo( new Bar, new Bar );

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)
5.4.210.0140.04012.38
5.4.200.0100.04612.38
5.4.190.0120.04412.38
5.4.180.0120.04212.37
5.4.170.0120.04112.39
5.4.160.0090.04412.38
5.4.150.0100.04312.38
5.4.140.0120.04312.06
5.4.130.0120.03912.05
5.4.120.0110.04012.01
5.4.110.0110.04112.00
5.4.100.0110.03912.01
5.4.90.0110.04312.01
5.4.80.0110.04012.00
5.4.70.0110.04312.00
5.4.60.0120.03912.00
5.4.50.0080.04212.00
5.4.40.0100.03911.99
5.4.30.0100.04111.98
5.4.20.0090.04111.98
5.4.10.0110.03811.98
5.4.00.0110.03811.47
5.3.270.0110.04312.72
5.3.260.0120.04112.72
5.3.250.0130.04012.72
5.3.240.0120.04312.72
5.3.230.0130.04112.71
5.3.220.0140.04212.68
5.3.210.0130.04212.68
5.3.200.0130.04312.68
5.3.190.0120.04212.68
5.3.180.0140.04112.67
5.3.170.0140.04012.67
5.3.160.0160.03812.67
5.3.150.0120.04012.67
5.3.140.0080.04512.66
5.3.130.0120.04212.66
5.3.120.0130.04012.66
5.3.110.0100.04612.66
5.3.100.0140.03912.12
5.3.90.0120.03912.09
5.3.80.0120.04212.08
5.3.70.0130.03812.08
5.3.60.0120.04212.07
5.3.50.0120.04012.01
5.3.40.0120.04212.01
5.3.30.0130.03911.97
5.3.20.0130.03911.74
5.3.10.0120.03911.71
5.3.00.0120.03911.70

preferences:
139.14 ms | 1394 KiB | 7 Q