3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThrowExceptions extends Exception { public static function alreadySent(string $name) { return new static("The campaign {$name} is already sent"); } } class TryThrow { public static function doThrow () { throw new ThrowExceptions("The campaign Example is already sent"); } } TryThrow::doThrow();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ThrowExceptions: The campaign Example is already sent in /in/b7ZgG:15 Stack trace: #0 /in/b7ZgG(20): TryThrow::doThrow() #1 {main} thrown in /in/b7ZgG on line 15
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:
171.46 ms | 405 KiB | 5 Q