3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { private function bar(){} };$a=array("foo","bar"); var_dump(is_callable($a)); $a(); ?>

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

Output for Typed properties v2
bool(false) Fatal error: Uncaught Error: Call to private method foo::bar() from context '' in /in/RMESd:1 Stack trace: #0 {main} thrown in /in/RMESd on line 1
Output for Array change keys
bool(false) Fatal error: Uncaught Error: Call to private method foo::bar() from context '' in /in/RMESd:1 Stack trace: #0 {main} thrown in /in/RMESd on line 1
Output for Lexical anon
bool(false) Fatal error: Call to private method foo::bar() from context '' in /in/RMESd on line 1

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