3v4l.org

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
Output for 5.0.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.0
int(5) int(7)
Output for 4.3.0 - 4.4.9
Notice: Undefined property: t in /in/M9poK on line 14 NULL int(7)