3v4l.org

run code in 500+ PHP versions simultaneously
<?php class User {} interface UserFinder { function findUserByEmail(): ?User; } class AlwaysNullUserFinder implements UserFinder { function findUserByEmail(): never { throw new Exception('Not implemented'); } } $a = new AlwaysNullUserFinder; $a->findUserByEmail();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Exception: Not implemented in /in/4SaN7:13 Stack trace: #0 /in/4SaN7(18): AlwaysNullUserFinder->findUserByEmail() #1 {main} thrown in /in/4SaN7 on line 13
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:
94.8 ms | 1272 KiB | 4 Q