3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ai1ec_Core_Callback { protected $_registry = null; protected $_registry_name = null; protected $_method = null; public function __construct( Ai1ec_Objects_Registry $registry, $path, $method ) { $this->_registry = $registry; $this->_registry_name = $path; $this->_method = $method; } public function execute( array $argv ) { return $this->_registry->get( $this->_registry_name )->{$this->_method}( $argv ); } } for($i = 0; $i < 200; $i++){ $obj = new Ai1ec_Core_Callback("bla bla bla", "method name"); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: Ai1ec_Core_Callback::__construct(): Argument #1 ($registry) must be of type Ai1ec_Objects_Registry, string given, called in /in/sipGK on line 20 and defined in /in/sipGK:8 Stack trace: #0 /in/sipGK(20): Ai1ec_Core_Callback->__construct('bla bla bla', 'method name') #1 {main} thrown in /in/sipGK 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:
42.08 ms | 401 KiB | 8 Q