3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sweetsThief = Closure::bind(function & (Kitchen $kitchen) { return $kitchen->yummy; }, null, $kitchen); $cake = & $sweetsThief($kitchen); $cake = 'lie'; var_dump('the cake is a ' . $sweetsThief($kitchen));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $kitchen in /in/t5VS8 on line 5 Warning: Undefined variable $kitchen in /in/t5VS8 on line 8 Fatal error: Uncaught TypeError: {closure}(): Argument #1 ($kitchen) must be of type Kitchen, null given, called in /in/t5VS8 on line 8 and defined in /in/t5VS8:3 Stack trace: #0 /in/t5VS8(8): {closure}(NULL) #1 {main} thrown in /in/t5VS8 on line 3
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:
36.92 ms | 401 KiB | 8 Q