3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'a' => array('w'=>'d','c'=>'q','v'=>'g','f' => 'h'), 'b' => 'v' ); echo json_encode($arr);
based on aKbH1
Output for 5.6.0 - 7.3.0beta1
{"a":{"w":"d","c":"q","v":"g","f":"h"},"b":"v"}