3v4l.org

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