3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr='[{"name":"Office","TB":[{"date":[false,true],"time":"8:00 AM"},{"days":[false,true],"time":"6:00 PM"}]}]'; $rr=json_decode($arr); foreach ($rr[0]->TB as $key => $value) { array_walk_recursive($value, function($k,$kk){ echo 'Key is '.$kk.' & Value is '.$k.'<br>'; }); }
Output for git.master, git.master_jit, rfc.property-hooks
Key is 0 & Value is <br>Key is 1 & Value is 1<br>Key is time & Value is 8:00 AM<br>Key is 0 & Value is <br>Key is 1 & Value is 1<br>Key is time & Value is 6:00 PM<br>

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