3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { } $b=new A; function aaa($obj) { $obj->ret=6; } var_dump($b->ret);
Output for 5.2.6 - 7.1.0
Notice: Undefined property: A::$ret in /in/nISPI on line 23 NULL
Output for 5.0.0 - 5.2.5
Notice: Undefined property: A::$ret in /in/nISPI on line 23 NULL
Output for 4.3.0 - 4.4.9
Notice: Undefined property: ret in /in/nISPI on line 23 NULL