3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class lol { final private function __construct() {} } class rofl extends lol { public function __construct() { echo "hi"; } } new rofl();
based on p2oNk
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.6
Fatal error: Cannot override final method lol::__construct() in /in/eZI5Y on line 11
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Cannot override final method lol::__construct() in /in/eZI5Y:7 Stack trace: #0 {main}
Process exited with code 255.