3v4l.org

run code in 300+ PHP versions simultaneously
<?php $term_ids_weirdstuff = array( 0 => array('tid' => 1), 1 => array('tid' => 2), 2 => array('tid' => 3), ); $term_ids=array(); array_walk($term_ids_weirdstuff,function($val) use(&$term_ids){ $term_ids[]=$val['tid']; }); foreach( $term_ids_weirdstuff as $dt)$term_ids[]=$dt['tid']; print_r($term_ids); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/QFl1S
function name:  (null)
number of ops:  19
compiled vars:  !0 = $term_ids_weirdstuff, !1 = $term_ids, !2 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
    9     2        INIT_FCALL                                               'array_walk'
          3        SEND_REF                                                 !0
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FQFl1S%3A9%240'
          5        BIND_LEXICAL                                             ~5, !1
   13     6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
   14     8      > FE_RESET_R                                       $7      !0, ->14
          9    > > FE_FETCH_R                                               $7, !2, ->14
         10    >   FETCH_DIM_R                                      ~9      !2, 'tid'
         11        ASSIGN_DIM                                               !1
         12        OP_DATA                                                  ~9
         13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $7
   15    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   16    18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FQFl1S%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QFl1S
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $val, !1 = $term_ids
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
   11     2        FETCH_DIM_R                                      ~3      !0, 'tid'
          3        ASSIGN_DIM                                               !1
          4        OP_DATA                                                  ~3
   13     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FQFl1S%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.49 ms | 1396 KiB | 17 Q