3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{"query":[{"pid":"abc"},{"status":"cde"},{"uname":"{{user->username}}"},{"pass":"{{user->password}}"}]}'; $array = json_decode($json, true); print_r($array);
Output for 5.3.18 - 7.2.0
Array ( [query] => Array ( [0] => Array ( [pid] => abc ) [1] => Array ( [status] => cde ) [2] => Array ( [uname] => {{user->username}} ) [3] => Array ( [pass] => {{user->password}} ) ) )