3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = (string) $vehicleSaleOffer->vehicleOps->isDamageOrWreck == true ? "true" : "false"; echo $test;
Output for 7.2.0 - 7.3.0rc3
Notice: Undefined variable: vehicleSaleOffer in /in/vQC7k on line 3 Notice: Trying to get property 'vehicleOps' of non-object in /in/vQC7k on line 3 Notice: Trying to get property 'isDamageOrWreck' of non-object in /in/vQC7k on line 3 false
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.20
Notice: Undefined variable: vehicleSaleOffer in /in/vQC7k on line 3 Notice: Trying to get property of non-object in /in/vQC7k on line 3 Notice: Trying to get property of non-object in /in/vQC7k on line 3 false
Output for hhvm-3.15.4
Notice: Undefined variable: vehicleSaleOffer in /in/vQC7k on line 3 Notice: Cannot access property on non-object in /in/vQC7k on line 3 Notice: Cannot access property on non-object in /in/vQC7k on line 3 false