3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function bar() { echo __METHOD__, "\n"; } public function bang() { self::bar(); $this->bar(); } } class Baz extends Foo { public function bar() { echo __METHOD__, "\n";􀀁 } } $foo = new Baz; $foo->bar(); $foo->bang();

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.300.0120.03512.52
5.4.290.0090.04112.52
5.4.280.0080.04712.41
5.4.270.0090.04612.41
5.4.260.0150.06812.41
5.4.250.0160.08312.41
5.4.240.0150.07212.41
5.4.230.0080.08512.40
5.4.220.0090.05912.41
5.4.210.0080.03912.40
5.4.200.0140.07712.40
5.4.190.0080.05512.40
5.4.180.0130.06412.40
5.4.170.0090.05412.41
5.4.160.0100.04412.41
5.4.150.0070.06712.40
5.4.140.0130.05012.09
5.4.130.0050.03812.07
5.4.120.0050.03812.04
5.4.110.0110.04912.04
5.4.100.0100.04712.04
5.4.90.0060.05412.04
5.4.80.0070.05412.04
5.4.70.0120.04612.03
5.4.60.0090.04912.03
5.4.50.0070.03612.03
5.4.40.0050.03612.02
5.4.30.0040.03712.02
5.4.20.0050.03912.01
5.4.10.0060.04512.02
5.4.00.0090.03511.51
5.3.280.0060.04012.71
5.3.270.0100.04212.72
5.3.260.0110.04312.72
5.3.250.0150.06312.72
5.3.240.0110.05912.72
5.3.230.0120.03812.71
5.3.220.0080.04212.68
5.3.210.0110.05012.68
5.3.200.0070.06012.68
5.3.190.0100.03912.68
5.3.180.0090.03312.67
5.3.170.0100.03412.67
5.3.160.0080.04912.67
5.3.150.0050.04312.67
5.3.140.0050.05612.66
5.3.130.0070.04012.66
5.3.120.0060.04112.66
5.3.110.0050.04712.65
5.3.100.0100.03412.13
5.3.90.0090.03512.11
5.3.80.0090.03512.10
5.3.70.0060.03912.09
5.3.60.0090.03512.08
5.3.50.0070.03612.04
5.3.40.0070.03712.03
5.3.30.0050.03711.99
5.3.20.0070.03611.77
5.3.10.0060.04311.74
5.3.00.0050.05411.72

preferences:
141.51 ms | 1394 KiB | 7 Q