run code in 200+ php & hhvm versions
Bugs & Features
<?php // Source: https://bugs.php.net/bug.php?id=62476 class A{ function __get($a) { return 5; } } $a = new A(); var_dump($a->t); $a->t = 7; var_dump($a->t);
based on DgUUQ

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
int(5) int(7)
Output for Arrow functions
int(5) int(7)
Output for Object typehint
int(5) int(7)
Output for Array change keys
int(5) int(7)
Output for Lexical anon
int(5) int(7)

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