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, rfc.property-hooks
Array ( [f_name] => Parag [l_name] => Tyagi [p_no] => 9999999999 )

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.67 ms | 401 KiB | 8 Q