3v4l.org

run code in 300+ PHP versions simultaneously
<?php $raw = [ '', 1, [ [ 'TradeID' => 15950315, 'Price' => 0.00000170, 'Type' => 'buy', 'Amount' => 712.85989430, 'Total' => 0.00121368, 'Time' => 1535337908, ], [ 'TradeID' => 15908375, 'Price' => 0.00000300, 'Type' => 'buy', 'Amount' => 574.71264368, 'Total' => 0.00172673, 'Time' => 1535022882, ] ] ]; $object = (object)$raw; $array = (array) $object; foreach ($array['2'] as $item) { echo $item['TradeID'] . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
15950315 15908375

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:
129.78 ms | 405 KiB | 5 Q