3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class A { abstract public function createApp(); } class B extends A { public static function createApp() { echo "You should not be here\n"; } } (new B)->createApp();
Output for 8.3.5
Fatal error: Cannot make non static method A::createApp() static in class B in /in/it0Se on line 10
Process exited with code 255.
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.24, 7.3.0 - 7.3.11
Fatal error: Cannot make non static method A::createApp() static in class B in /in/it0Se on line 14
Process exited with code 255.

preferences:
42.51 ms | 682 KiB | 3 Q