3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Actions implements Action_Interface { protected $action_type; public function __construct() { $this->testing_stuff(); $this->testing_more_stuff(); } abstract protected function testing_more_stuff(); } interface Action_Interface { protected function testing_stuff(); } class ThisAction extends Actions { protected $action_type = 'testing'; protected function testing_more_stuff() { echo "more stuff"; } private function testing_stuff() { echo "just some {$this->action_type} stuff\n"; } } $blah = new ThisAction;

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.1.70.0060.00616.95
7.1.60.0250.00035.09
7.1.50.0070.01834.40
7.1.40.0220.00634.33
7.1.30.0160.01634.29
7.1.20.0140.01434.48
7.1.10.0060.01016.30
7.1.00.0110.00316.59
7.0.200.0000.01216.61
7.0.190.0090.00316.48
7.0.180.0030.01016.04
7.0.170.0030.01116.01
7.0.160.0000.01616.01
7.0.150.0000.01616.21
7.0.140.0000.01415.91
7.0.130.0060.01216.41
7.0.120.0030.01016.13
7.0.110.0030.01016.35
7.0.100.0070.00716.33
7.0.90.0060.00616.10
7.0.80.0080.00516.25
7.0.70.0030.01016.19
7.0.60.0040.01215.86
7.0.50.0110.00316.17
7.0.40.0070.01016.42
7.0.30.0060.00616.59
7.0.20.0030.01016.25
7.0.10.0030.01116.32
7.0.00.0030.01016.05

preferences:
135.66 ms | 1394 KiB | 7 Q