3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Process { /** * Ensures the process is running or terminated, throws a LogicException if the process has a not started. * * @param $functionName The function name that was called. * * @throws LogicException If the process has not run. */ public function requireProcessHasRun($functionName) { if (true) { throw new LogicException(sprintf('Process must be started before calling %s.', $functionName)); } } } $p = new Process(); $p->requireProcessHasRun('S');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught LogicException: Process must be started before calling S. in /in/Z2jam:16 Stack trace: #0 /in/Z2jam(23): Process->requireProcessHasRun('S') #1 {main} thrown in /in/Z2jam on line 16
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:
40.38 ms | 401 KiB | 8 Q