3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A1 { private function bla() { echo "a"; } public function doA() { $this->bla(); } } class B1 extends A1 { private bla() { echo "b"; } public function doB() { $this->bla(); } } $nonFinal = new B1(); $nonFinal->doA(); // outputs "b" $nonFinal->doB(); // outputs "b"

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.190.0070.05018.84
5.4.180.0100.05718.96
5.4.170.0100.07318.92
5.4.160.0000.05719.04
5.4.150.0070.06318.94
5.4.140.0130.07316.63
5.4.130.0100.05716.54
5.4.120.0200.06016.47
5.4.110.0030.05316.41
5.4.100.0070.04716.43
5.4.90.0130.05716.36
5.4.80.0100.04716.56
5.4.70.0130.06716.51
5.4.60.0230.05316.45
5.4.50.0130.05316.55
5.4.40.0170.04016.46
5.4.30.0100.05016.34
5.4.20.0100.04316.36
5.4.10.0130.05016.32
5.4.00.0130.05716.01
5.3.270.0030.08314.74
5.3.260.0100.05314.51
5.3.250.0170.05314.61
5.3.240.0030.05314.61
5.3.230.0030.05714.43
5.3.220.0070.07314.66
5.3.210.0170.06714.66
5.3.200.0100.04714.49
5.3.190.0030.05314.40
5.3.180.0200.06314.40
5.3.170.0070.07714.55
5.3.160.0100.05014.60
5.3.150.0030.07714.66
5.3.140.0070.05014.53
5.3.130.0100.05014.63
5.3.120.0070.07014.63
5.3.110.0100.05714.52
5.3.100.0130.05314.05
5.3.90.0100.07314.09
5.3.80.0070.05014.00
5.3.70.0030.05314.11
5.3.60.0070.07013.83
5.3.50.0130.05014.04
5.3.40.0070.05013.94
5.3.30.0000.07714.00
5.3.20.0130.06013.60
5.3.10.0070.05313.64
5.3.00.0100.05313.64

preferences:
139.38 ms | 1394 KiB | 7 Q