3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass(); $a->lead = new stdClass(); $a->lead->name = 'cool'; if(isset($a->lead->name)){ echo '1'; } if($a->lead->referral){ echo '2'; }
based on TZ95G
Output for 5.2.6 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1 Notice: Undefined property: stdClass::$referral in /in/G1T2m on line 10
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.2.5
1 Notice: Undefined property: stdClass::$referral in /in/G1T2m on line 10
Output for 4.3.0 - 4.4.9
1 Notice: Undefined property: referral in /in/G1T2m on line 10