3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $foo = false; $bar = $foo->something; var_dump($foo); var_dump($bar);
based on mK7cn
Output for 7.2.0
Notice: Trying to get property 'something' of non-object in /in/JlYQI on line 5 bool(false) NULL
Output for 5.0.0 - 7.1.10
Notice: Trying to get property of non-object in /in/JlYQI on line 5 bool(false) NULL
Output for 4.3.0 - 4.4.9
bool(false) NULL