3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public function ciao() { } abstract function xyz(); abstract public function abc(); } class X extends A { public function xyz() { } } new X();
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Fatal error: Class X contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (A::abc) in /in/C3HPJ on line 18
Process exited with code 255.

preferences:
180.41 ms | 1395 KiB | 60 Q