3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( "test" => 123, "test2" => 345, "text3" => array("awesome") ); $a = json_encode($array); $b = json_decode($a); echo "<pre>"; print_r($array, true); print_r($b, true);

preferences:
59.81 ms | 402 KiB | 5 Q