3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface AnswerInterface { public function get(); public function the(); public function answer(); } // start editing h class Answer implements AnswerInterface { public function get() { function the() { function answer() { return 4; } } } } // end editing here $answer = new Answer; var_dump($answer); ?>

preferences:
35.55 ms | 402 KiB | 5 Q