3v4l.org

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

preferences:
53.11 ms | 402 KiB | 5 Q