3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public function qui() { echo __CLASS__; } public static function test() { self::qui(); } } class B extends A { public function qui() { echo __CLASS__; } public static function qui() { echo __CLASS__; } } B::test();
Output for 5.3.0 - 5.4.25
Fatal error: Cannot redeclare B::qui() in /in/ueYX9 on line 20
Process exited with code 255.