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 ThrowExceptions::alreadySent("Example"); } } TryThrow::doThrow();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ThrowExceptions: The campaign Example is already sent in /in/HiWun:7 Stack trace: #0 /in/HiWun(15): ThrowExceptions::alreadySent('Example') #1 /in/HiWun(20): TryThrow::doThrow() #2 {main} thrown in /in/HiWun on line 7
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:
33.54 ms | 405 KiB | 5 Q