3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP // If you are using Zend Framework's autoloader // this example will crash with no errors on // the class_exists() call. interface MyInterface { public function refreshData(); } abstract class MyAbstract implements MyInterface { abstract protected function refreshData(); } class MyClass extends MyAbstract { public function refreshData() { print "am in refreshData"; } } //-------------------------------------------- if (class_exists('MyClass',true)) { $mine = new MyClass(); $mine->refreshData(); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Access level to MyAbstract::refreshData() must be public (as in class MyInterface) in /in/lA8oG on line 13
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.96 ms | 401 KiB | 8 Q