3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"ClientData":[{"firstName":"Master","lastName":"Tester","email":"me@me.com","dob":"1973-01-22","age":"51","pierceType":"Vici","street":"number of house","city":"here","county":"there","postcode":"everywhere"}],"HealthData":[["condtion : Prone to Fainting / Dizziness","condtion : Allergic Response to Plasters","condtion : Prone to Fainting / Dizziness"]],"PiercerData":[{"firstName":"Male","lastName":"checking","pierceDate":"2013-02-25","jewelleryType":"Vici","jewelleryDesign":"Vidi","jewellerySize":"Vici","idChecked":null,"medicalChecked":null,"notes":"This is for more info"}]}'; $json = $string->ClientData; foreach($json AS $array) { foreach($array AS $key => $value) { echo $key . " : " . $value . "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Attempt to read property "ClientData" on string in /in/SRB65 on line 4 Warning: foreach() argument must be of type array|object, null given in /in/SRB65 on line 6

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