3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Answer { public function answer() { return 4; } public function the() { return answer(); } public function get() { return the(); } } // end editing here $answer = new Answer; var_dump($answer->get()); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function the() in /in/cljS1:20 Stack trace: #0 /in/cljS1(33): Answer->get() #1 {main} thrown in /in/cljS1 on line 20
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:
49.86 ms | 401 KiB | 8 Q