3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' [ { timestamp: 1509523044, tid: 83450451, price: "6381.0", amount: "1.0", type: "sell" }, { timestamp: 1509523044, tid: 83450448, price: "6380.0", amount: "1.12894377", type: "buy" } ]'; $json = json_decode(preg_replace('/(\w+):/', '"$1":', $str)); Echo $json[0]->price; Var_dump($json);
Output for git.master, git.master_jit, rfc.property-hooks
6381.0array(2) { [0]=> object(stdClass)#1 (5) { ["timestamp"]=> int(1509523044) ["tid"]=> int(83450451) ["price"]=> string(6) "6381.0" ["amount"]=> string(3) "1.0" ["type"]=> string(4) "sell" } [1]=> object(stdClass)#2 (5) { ["timestamp"]=> int(1509523044) ["tid"]=> int(83450448) ["price"]=> string(6) "6380.0" ["amount"]=> string(10) "1.12894377" ["type"]=> string(3) "buy" } }

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