3v4l.org

run code in 300+ PHP versions simultaneously
<?php function strict() { $backtrace = debug_backtrace(0, 2); if (false === $backtrace || count($backtrace) !== 1) { throw new \RuntimeException('strict() must be called from within a function'); } $expectedTypes = func_get_args(); print_r($backtrace); } function myargs($a, $b) { strict('string', 'int'); echo 'Hello'; } myargs('hello', 4);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught RuntimeException: strict() must be called from within a function in /in/jIqck:8 Stack trace: #0 /in/jIqck(18): strict('string', 'int') #1 /in/jIqck(23): myargs('hello', 4) #2 {main} thrown in /in/jIqck on line 8
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:
61.01 ms | 401 KiB | 8 Q