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"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/LOYtp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $raw, !1 = $object, !2 = $array, !3 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1        CAST                                          8  ~5      !0
          2        ASSIGN                                                   !1, ~5
   28     3        CAST                                          7  ~7      !1
          4        ASSIGN                                                   !2, ~7
   30     5        FETCH_DIM_R                                      ~9      !2, 2
          6      > FE_RESET_R                                       $10     ~9, ->12
          7    > > FE_FETCH_R                                               $10, !3, ->12
   31     8    >   FETCH_DIM_R                                      ~11     !3, 'TradeID'
          9        CONCAT                                           ~12     ~11, '%0A'
         10        ECHO                                                     ~12
   30    11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $10
   32    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.05 ms | 998 KiB | 13 Q