3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $users = json_decode('[{"name": "hakre"}]'); echo $users->name; # Notice: Trying to get property of non-object
Output for 7.2.0 - 7.3.1
Notice: Trying to get property 'name' of non-object in /in/SUDe0 on line 4
Output for 5.3.22 - 5.6.38, 7.0.0 - 7.1.25
Notice: Trying to get property of non-object in /in/SUDe0 on line 4
Output for hhvm-3.22.0
Notice: Cannot access property on non-object in /in/SUDe0 on line -1
Output for hhvm-3.11.1 - 3.21.3
Notice: Cannot access property on non-object in /in/SUDe0 on line 4