3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_arr='{"#D1 1":"750x225","#D1 2":"735x450","#D1 3":"750x216","#D2 1":"750x450","#D2 2":"735x450"}'; $encode=json_decode($json_arr); $out = $sep = ''; foreach( $encode as $key => $value ) { $out .= $sep . $key . ':' . $value; $sep = ' ,'; } print_r($out);
Output for git.master, git.master_jit, rfc.property-hooks
#D1 1:750x225 ,#D1 2:735x450 ,#D1 3:750x216 ,#D2 1:750x450 ,#D2 2:735x450

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
36.99 ms | 401 KiB | 8 Q