3v4l.org

run code in 300+ PHP versions simultaneously
<?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; ?>
Output for git.master, git.master_jit
Warning: Undefined variable $data in /in/PB7Oh on line 2 Warning: Attempt to read property "field_field_investor_commitment" on null in /in/PB7Oh on line 2 Warning: Trying to access array offset on value of type null in /in/PB7Oh on line 2 Warning: Trying to access array offset on value of type null in /in/PB7Oh on line 2 Warning: Undefined variable $data in /in/PB7Oh on line 3 Warning: Attempt to read property "field_field_amount_new" on null in /in/PB7Oh on line 3 Warning: Trying to access array offset on value of type null in /in/PB7Oh on line 3 Warning: Trying to access array offset on value of type null in /in/PB7Oh on line 3 0
Output for rfc.property-hooks
Warning: Undefined variable $data in /in/PB7Oh on line 2 Warning: Attempt to read property "field_field_investor_commitment" on null in /in/PB7Oh on line 2 Warning: Trying to access array offset on null in /in/PB7Oh on line 2 Warning: Trying to access array offset on null in /in/PB7Oh on line 2 Warning: Undefined variable $data in /in/PB7Oh on line 3 Warning: Attempt to read property "field_field_amount_new" on null in /in/PB7Oh on line 3 Warning: Trying to access array offset on null in /in/PB7Oh on line 3 Warning: Trying to access array offset on null in /in/PB7Oh on line 3 0

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.18 ms | 402 KiB | 8 Q