run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { public function get_doable() { return array($this, 'do_it'); } private function do_it() { echo __METHOD__, "\n"; } } $foo = new foo(); $call = $foo->get_doable(); $call();

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties
Fatal error: Uncaught Error: Call to private method foo::do_it() from context '' in /in/aFbsk:16 Stack trace: #0 {main} thrown in /in/aFbsk on line 16

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