3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface AnswerInterface { public function get(); public function the(); public function answer(); } class Answer implements AnswerInterface { public function get() { return 4; } } $answer = new Answer; var_dump($answer);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Class Answer contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (AnswerInterface::the, AnswerInterface::answer) in /in/nQpCK on line 10
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:
53.06 ms | 401 KiB | 8 Q