3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' { "email": "shahzad@ovadamd.com", "password": "admin123", "password_confirmation": "admin123", "status": 0, "first_name": "Shahzad", "middle_name": "Hussain", "last_name": "Shah", "date_of_birth": "2015-01-01", "gender": "M", "area_id": 1, "address": "Minhatten NY", "city": "New York", "state": "Washington", "zip": "12312", "fax": "111-111-1111", "phone_extension": "2471", "work_phone": "111-111-1111", "phone_no": "111-111-1111", "emergency_contact": "111-111-1111", "social_security": "111-11-1111", "module_id": 1, "role_id": 1, "speciality_id": 1, "facility_id": 1, "priv_title": "can edit doctor", "priv_key": "ced", "display_group": "Doctor", "prev_id" :1 }'; $arr = array_combine(["user_profile", "prev"], array_chunk(json_decode($json, true),22, true)); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["user_profile"]=> array(22) { ["email"]=> string(19) "shahzad@ovadamd.com" ["password"]=> string(8) "admin123" ["password_confirmation"]=> string(8) "admin123" ["status"]=> int(0) ["first_name"]=> string(7) "Shahzad" ["middle_name"]=> string(7) "Hussain" ["last_name"]=> string(4) "Shah" ["date_of_birth"]=> string(10) "2015-01-01" ["gender"]=> string(1) "M" ["area_id"]=> int(1) ["address"]=> string(12) "Minhatten NY" ["city"]=> string(8) "New York" ["state"]=> string(10) "Washington" ["zip"]=> string(5) "12312" ["fax"]=> string(12) "111-111-1111" ["phone_extension"]=> string(4) "2471" ["work_phone"]=> string(12) "111-111-1111" ["phone_no"]=> string(12) "111-111-1111" ["emergency_contact"]=> string(12) "111-111-1111" ["social_security"]=> string(11) "111-11-1111" ["module_id"]=> int(1) ["role_id"]=> int(1) } ["prev"]=> array(6) { ["speciality_id"]=> int(1) ["facility_id"]=> int(1) ["priv_title"]=> string(15) "can edit doctor" ["priv_key"]=> string(3) "ced" ["display_group"]=> string(6) "Doctor" ["prev_id"]=> int(1) } }

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:
127.89 ms | 409 KiB | 5 Q