3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NodeViewController { private function isValidRel($rel):bool { return true; } protected function isValidRef(): bool { return true; } } class Othercontroller extends NodeViewController { public function testPrivate() { return $this->isValidRel('yep', 'nope'); } public function testProtected() { return $this->isValidRef(); } protected function isValidRef($something = null) { return true; } private function isValidRel($rel, $different) { return true; } } $x = new Othercontroller(); var_export($x->testProtected());

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)
8.0.00.0180.00616.57
7.4.130.0040.01516.11
7.4.120.0030.01916.28
7.4.110.0100.01416.50
7.4.100.0110.00816.25
7.4.90.0110.00716.51
7.4.80.0050.01416.20
7.4.70.0100.01616.39
7.4.60.0170.00716.29
7.4.50.0090.01616.13
7.4.40.0200.00616.41
7.4.30.0120.01216.48
7.4.20.0130.00616.29
7.4.10.0030.01916.42
7.4.00.0120.01216.13
7.3.250.0170.00716.54
7.3.240.0040.01816.12
7.3.230.0100.01316.23
7.3.220.0110.00716.42
7.3.210.0120.00616.26
7.3.200.0170.00916.21
7.3.190.0210.00316.29
7.3.180.0150.00916.43
7.3.170.0120.01216.28
7.3.160.0070.01116.29
7.3.150.0110.00816.21
7.3.140.0150.00616.36
7.3.130.0060.01616.20
7.3.120.0070.01116.26
7.3.110.0110.00716.29
7.3.100.0120.00616.21
7.3.90.0090.00916.17
7.3.80.0070.01116.48
7.3.70.0140.00516.21
7.3.60.0100.01016.33
7.3.50.0090.00916.31
7.3.40.0080.00816.15
7.3.30.0030.01416.36
7.3.20.0030.01316.22
7.3.10.0090.00916.22
7.3.00.0160.00816.26

preferences:
152.66 ms | 997 KiB | 7 Q