3v4l.org

run code in 300+ 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 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:
29.12 ms | 409 KiB | 5 Q