3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fooA(): true {} function fooB(): false {} function fooC(): null {} function fooD(): true|null {} function fooE(): false|null {} //function fooF(): false|true {} // Fatal error: Type contains both true and false, bool should be used instead function fooG(): ?true {} function fooH(): ?false {} //function fooI(): ?null {} // Fatal error: null cannot be marked as nullable
Output for git.master, git.master_jit

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:
48.69 ms | 405 KiB | 5 Q