run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(...$args) { var_dump($args); } function gen() { yield 1.23 => 123; } foo(...gen());

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
Fatal error: Uncaught Error: Cannot unpack Traversable with non-integer keys in /in/Un8Tq:9 Stack trace: #0 {main} thrown in /in/Un8Tq on line 9
Output for Arrow functions
array(1) { [0]=> int(123) }
Output for Object typehint
array(1) { [0]=> int(123) }
Output for Array change keys
array(1) { [0]=> int(123) }
Output for Lexical anon
array(1) { [0]=> int(123) }

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