3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gen = (function() { yield from [null, new class { function __destruct() { throw new Exception; } }]; })(); function foo($gen) { $gen->valid(); } foo($gen); function spray() {} spray(...range(1, 20)); $gen->throw(new Error);
Output for git.master, rfc.property-hooks

Process exited with code 139.
Output for git.master_jit
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /in/QeJLV on line 4
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:
63.04 ms | 406 KiB | 5 Q