3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { function __get($property) { return $property; } } $object = new foo; $attribute = NULL; var_dump($object->$attribute);
Output for 5.1.0 - 7.1.0
string(0) ""
Output for 5.0.5
Fatal error: Cannot access empty property in /in/Fro9t on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.4
NULL
Output for 4.3.0 - 4.4.9
Notice: Undefined property: in /in/Fro9t on line 11 NULL