3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = Array ( 'meta' => Array ( 'code' => 200, 'type' => 'Success', 'message' => 'Success' ), 'data' => Array ( 'items' => Array ( '0' => Array ( 'id' => 'b4a235596fd9550dfb69f181f4db007f', 'tracking_number' => 2649884668232181, 'carrier_code' => 'hermes', 'order_create_time' => '', 'destination_code' => '', 'status' => 'delivered', 'track_update' => '', 'original_country' => '', 'itemTimeLength' => 7, 'stayTimeLength' => 74, 'service_code' => '', 'packageStatus' => '', 'substatus' => '', 'last_mile_tracking_supported' => '', 'origin_info' => Array ( 'ItemReceived' => '2019-04-09 09:29', 'ItemDispatched' => '', 'DepartfromAirport' => '', 'ArrivalfromAbroad' => '', 'CustomsClearance' => '', 'DestinationArrived' => '', 'weblink' => 'https://www.hermesworld.com/en/', 'phone' => '', 'carrier_code' => 'hermes', 'trackinfo' => Array ( '0' => Array ( 'Date' => '2019-04-15 11:51', 'StatusDescription' => 'Posted through letterbox', 'Details' => '', 'checkpoint_status' => 'delivered' ), '1' => Array ( 'Date' => '2019-04-15 09:45', 'StatusDescription' => 'Delivery will be attempted between 10:00 and 14:00 today ', 'Details' => '', 'checkpoint_status' => 'transit' ), '2' => Array ( 'Date' => '2019-04-15 06:39', 'StatusDescription' => 'On its way to the courier', 'Details' => '', 'checkpoint_status' => 'transit' ), '3' => Array ( 'Date' => '2019-04-14 22:33', 'StatusDescription' => 'At the customers local depot', 'Details' => '', 'checkpoint_status' => 'transit ' ) ) ), 'destination_info' => '', 'lastEvent' => 'Posted through letterbox,2019-04-15 11:51', 'lastUpdateTime' => '2019-04-15 11:51' ) ) ) ); $r = []; array_walk_recursive($a, function($v, $k) use(&$r){ ($k == 'checkpoint_status') ? ($r[]=$v) : ''; }); print_r($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rCVEB
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $r
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   70     1        ASSIGN                                                       !1, <array>
   71     2        INIT_FCALL                                                   'array_walk_recursive'
          3        SEND_REF                                                     !0
          4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        BIND_LEXICAL                                                 ~4, !1
   73     6        SEND_VAL                                                     ~4
   71     7        DO_ICALL                                                     
   74     8        INIT_FCALL                                                   'print_r'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
         11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rCVEB
function name:  {closure:/in/rCVEB:71}
number of ops:  12
compiled vars:  !0 = $v, !1 = $k, !2 = $r
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   71     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        BIND_STATIC                                                  !2
   72     3        IS_EQUAL                                                     !1, 'checkpoint_status'
          4      > JMPZ                                                         ~3, ->9
          5    >   ASSIGN_DIM                                           ~4      !2
          6        OP_DATA                                                      !0
          7        QM_ASSIGN                                            ~5      ~4
          8      > JMP                                                          ->10
          9    >   QM_ASSIGN                                            ~5      ''
         10    >   FREE                                                         ~5
   73    11      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.68 ms | 2057 KiB | 15 Q