3v4l.org

run code in 300+ PHP versions simultaneously
<?php function shutdown(): \Generator { try { yield; } finally { echo 'UNSET BEFORE yield', PHP_EOL; yield; } } $generator = shutdown(); $generator->rewind();
Output for git.master, git.master_jit, rfc.property-hooks
UNSET BEFORE yield Fatal error: Uncaught Error: Cannot yield from finally in a force-closed generator in /in/JQEOj:8 Stack trace: #0 [internal function]: shutdown() #1 {main} thrown in /in/JQEOj 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:
144.01 ms | 405 KiB | 5 Q