3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"rows":[{"c":[{"v":"Date(1409052482000)"},{"v":22},{"v":22},{"v":22},{"v":null}]}, {"c":[{"v":"Date(1409052614000)"},{"v":22},{"v":22},{"v":22},{"v":null}]}, {"c":[{"v":"Date(1409052782000)"},{"v":22},{"v":22},{"v":22},{"v":null}]} ]}'; $tempdata = json_decode($json, true); unset($tempdata['rows'][1]); echo 'BEFORE:' . json_encode($tempdata); $newvalue = array_values((array)$tempdata); echo 'AFTER:' . json_encode($newvalue);
Output for git.master, git.master_jit, rfc.property-hooks
BEFORE:{"rows":{"0":{"c":[{"v":"Date(1409052482000)"},{"v":22},{"v":22},{"v":22},{"v":null}]},"2":{"c":[{"v":"Date(1409052782000)"},{"v":22},{"v":22},{"v":22},{"v":null}]}}}AFTER:[{"0":{"c":[{"v":"Date(1409052482000)"},{"v":22},{"v":22},{"v":22},{"v":null}]},"2":{"c":[{"v":"Date(1409052782000)"},{"v":22},{"v":22},{"v":22},{"v":null}]}}]

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:
58.99 ms | 402 KiB | 8 Q