3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = '{"test1":"something1","test2":"something2","test3":"something3"}'; print_r(json_encode(json_decode($a, true), JSON_PRETTY_PRINT));

preferences:
86.36 ms | 1711 KiB | 5 Q