3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ConfusingClass{ /** * Private property */ private $property = 'fucking stupid'; /** * Why does this keep happening? * * @bullshit true */ private static function bullshit(); } class ConfusedBullshit extends ConfusingClass { private static function bullshit() { return true; } }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.18
Fatal error: Non-abstract method ConfusingClass::bullshit() must contain body in /in/m8rdL on line 13
Process exited with code 255.

preferences:
186.86 ms | 1395 KiB | 54 Q