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 abstract function bullshit(); } class ConfusedBullshit extends ConfusingClass { private function bullshit() { return true; } }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.18, 5.5.0 - 5.5.2
Fatal error: Abstract function ConfusingClass::bullshit() cannot be declared private in /in/2b1Sm on line 13
Process exited with code 255.

preferences:
182.2 ms | 940 KiB | 58 Q