3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors',1); error_reporting(E_ALL); abstract class weapon {abstract function fire();} class sword extends weapon {} echo 'hello world'; ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Fatal error: Class sword contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (weapon::fire) in /in/adcan on line 10
Process exited with code 255.

preferences:
195.01 ms | 1395 KiB | 66 Q