3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = NULL; empty($x['foo']->bar->k[$x->z]); print "OK\n";
based on AQgID
Output for 7.2.0
Notice: Trying to get property 'z' of non-object in /in/9FUdV on line 4 OK
Output for 5.1.6 - 7.1.10
Notice: Trying to get property of non-object in /in/9FUdV on line 4 OK
Output for 5.0.0 - 5.1.5
Notice: Trying to get property of non-object in /in/9FUdV on line 4 Notice: Trying to get property of non-object in /in/9FUdV on line 4 Notice: Trying to get property of non-object in /in/9FUdV on line 4 OK
Output for 4.3.0 - 4.4.9
OK