3v4l.org

run code in 300+ PHP versions simultaneously
<?php function w3rfunction($value,$key) { echo "$key : $value<br />"; } $a = '{"Title": "The Cuckoos Calling", "Author": "Robert Galbraith", "Detail": { "Publisher": "Little Brown" } }'; $j1 = json_decode($a,true); array_walk_recursive($j1,"w3rfunction"); ?>

preferences:
34.64 ms | 402 KiB | 5 Q