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'}"; $form_data['firstname'] = json_decode($first_name, TRUE)['first_name']; $form_data['lastname'] = json_decode($last_name, TRUE)['last_name']; $form_data['number'] = json_decode($phone_number, TRUE)['phone_number']; print_r($form_data);
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/MeJoU on line 6 Warning: Trying to access array offset on value of type null in /in/MeJoU on line 7 Warning: Trying to access array offset on value of type null in /in/MeJoU on line 8 Array ( [firstname] => [lastname] => [number] => )
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/MeJoU on line 6 Warning: Trying to access array offset on null in /in/MeJoU on line 7 Warning: Trying to access array offset on null in /in/MeJoU on line 8 Array ( [firstname] => [lastname] => [number] => )

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