3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new class {public $b;}; $b = clone $a; $a->b = $b; $b->b = $a; var_dump($a == $b);

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: Nesting level too deep - recursive dependency? in /in/sgV9E on line 9
Output for Arrow functions
Fatal error: Nesting level too deep - recursive dependency? in /in/sgV9E on line 9
Output for Object typehint
Fatal error: Nesting level too deep - recursive dependency? in /in/sgV9E on line 9
Output for Array change keys
Fatal error: Nesting level too deep - recursive dependency? in /in/sgV9E on line 9
Output for Lexical anon
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/sgV9E on line 3

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