3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cl =function(){ echo 'Im a closure' . PHP_EOL; }; class test { protected $cloure; public function __construct($closure) { $this->closure = $closure; } public function sayWho() { $closure = $this->closure; $closure(); } } $splstorage = new SplOjectStorage(); $test = new test($closure); $storage->attach($test); $after = $splstorage->offsetGet($test); $after->sayWho();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "SplOjectStorage" not found in /in/r0H77:29 Stack trace: #0 {main} thrown in /in/r0H77 on line 29
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:
31.52 ms | 401 KiB | 8 Q