run code in 200+ php & hhvm versions
Bugs & Features
<?php spl_autoload_register(function($name){ if($name == 'C') { spl_autoload_register(function($name){ if($name == 'C') { class C { function __construct(){ echo "I'm C.\n"; } } } }); } }); $c = new C();

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
I'm C.
Output for Arrow functions
I'm C.
Output for Object typehint
I'm C.
Output for Array change keys
I'm C.
Output for Lexical anon
I'm C.

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