3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first_name = "{'first_name' : 'Parag'}"; $last_name = "{'last_name' : 'Tyagi'}"; $phone_number = "{'phone_number' : '9999999999'}"; $data['f_name'] = json_decode($first_name, TRUE)['first_name']; $data['l_name'] = json_decode($last_name, TRUE)['last_name']; $data['p_no'] = json_decode($phone_number, TRUE)['phone_number']; print_r($data);
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/sr111 on line 6 Warning: Trying to access array offset on value of type null in /in/sr111 on line 7 Warning: Trying to access array offset on value of type null in /in/sr111 on line 8 Array ( [f_name] => [l_name] => [p_no] => )
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/sr111 on line 6 Warning: Trying to access array offset on null in /in/sr111 on line 7 Warning: Trying to access array offset on null in /in/sr111 on line 8 Array ( [f_name] => [l_name] => [p_no] => )

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:
34.25 ms | 401 KiB | 8 Q