3v4l.org

run code in 300+ PHP versions simultaneously
<?php function without() { echo 'no return'; } function with(): string { echo 'no return'; } echo with(); echo without();
Output for git.master, git.master_jit
no return Fatal error: Uncaught TypeError: with(): Return value must be of type string, none returned in /in/pRhCT:9 Stack trace: #0 /in/pRhCT(11): with() #1 {main} thrown in /in/pRhCT on line 9
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:
28.98 ms | 405 KiB | 5 Q