3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected function bla() { return "A"; } public function printIt() { echo $this->bla(); } } class B extends A { private function bla() { return "B"; } } $a = new A(); $b = new B(); $a->printIt(); $b->printIt();

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.170.0210.03912.39
5.4.160.0270.06712.38
5.4.150.0160.04512.38
5.4.140.0180.04312.06
5.4.130.0220.05712.05
5.4.120.0190.04312.01
5.4.110.0250.06812.00
5.4.100.0180.04312.01
5.4.90.0190.04312.00
5.4.80.0220.05512.00
5.4.70.0150.04412.00
5.4.60.0170.04412.00
5.4.50.0210.04112.00
5.4.40.0120.06111.99
5.4.30.0250.06511.98
5.4.20.0170.04411.99
5.4.10.0190.04111.98
5.4.00.0160.04311.48
5.3.270.0230.05812.72
5.3.260.0150.05012.72
5.3.250.0260.05612.72
5.3.240.0180.04612.72
5.3.230.0180.04712.71
5.3.220.0210.04312.68
5.3.210.0190.04612.68
5.3.200.0260.06612.68
5.3.190.0190.05612.68
5.3.180.0210.05712.67
5.3.170.0180.04712.67
5.3.160.0200.04612.67
5.3.150.0180.04912.67
5.3.140.0260.06712.66
5.3.130.0310.06312.65
5.3.120.0210.05712.66
5.3.110.0200.04512.66
5.3.100.0260.05412.12
5.3.90.0190.04512.10
5.3.80.0190.04512.08
5.3.70.0270.07212.08
5.3.60.0170.04712.07
5.3.50.0300.06812.02
5.3.40.0210.04312.02
5.3.30.0180.04211.99
5.3.20.0250.06511.77
5.3.10.0180.04311.73
5.3.00.0190.04111.71

preferences:
137.78 ms | 1394 KiB | 7 Q