3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $investCom = $data->field_field_investor_commitment[0]['rendered'] * 1.0; $mortAmount = $data->field_field_amount_new[0]['rendered'] * 1.0; $comm = (float)$investCom; $mort = (float)$mortAmount; $balance = $comm - $mort; echo $balance; ?>
based on WdIr9
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: data in /in/PB7Oh on line 2 Notice: Trying to get property of non-object in /in/PB7Oh on line 2 Notice: Undefined variable: data in /in/PB7Oh on line 3 Notice: Trying to get property of non-object in /in/PB7Oh on line 3 0
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: data in /in/PB7Oh on line 2 Notice: Cannot access property on non-object in /in/PB7Oh on line 2 Notice: Undefined variable: data in /in/PB7Oh on line 3 Notice: Cannot access property on non-object in /in/PB7Oh on line 3 0
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: data in /in/PB7Oh on line 2 Notice: Trying to get property of non-object in /in/PB7Oh on line 2 Notice: Undefined variable: data in /in/PB7Oh on line 3 Notice: Trying to get property of non-object in /in/PB7Oh on line 3 0
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: data in /in/PB7Oh on line 2 Notice: Undefined variable: data in /in/PB7Oh on line 3 0