3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 0 ; $y =1; $z = $p->d ?: $y; echo $z;
based on NsDH9
Output for 7.2.5 - 7.3.0alpha1
Notice: Undefined variable: p in /in/2UFSE on line 5 Notice: Trying to get property 'd' of non-object in /in/2UFSE on line 5 1
Output for 5.6.0 - 7.1.7
Notice: Undefined variable: p in /in/2UFSE on line 5 Notice: Trying to get property of non-object in /in/2UFSE on line 5 1