3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = NULL; empty($x['foo']->bar->k[$x->z]); print "OK\n";
based on AQgID
Output for 5.1.6 - 5.6.28, 7.0.0 - 7.1.0
Notice: Trying to get property of non-object in /in/9FUdV on line 4 OK
Output for hhvm-3.12.0
Notice: Cannot access property on non-object in /in/9FUdV on line 4 OK
Output for hhvm-3.10.0

Process exited with code 153.
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