3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array ( 'bike' => array ( 'id' => 29, 'type' => 'a', 'time' => '9', ), 'car' => array ( 0 => array ( 'id' => 189, 'type' => 'b', 'time' => '18', ), 1 => array ( 'id' => 190, 'type' => 'c', 'time' => '14', ), ), 'plane' => array ( 'id' => 313, 'type' => 'd', 'time' => '20', ), ); $output = []; array_walk_recursive($input, function($value, $key) use (&$output) { if ($key == "id") { $output[] = $value; } }, $output); var_export($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8bYUa
function name:  (null)
number of ops:  13
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   33     1        ASSIGN                                                   !1, <array>
   35     2        INIT_FCALL                                               'array_walk_recursive'
          3        SEND_REF                                                 !0
          4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          5        BIND_LEXICAL                                             ~4, !1
   39     6        SEND_VAL                                                 ~4
          7        SEND_VAR                                                 !1
   35     8        DO_ICALL                                                 
   41     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > 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 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/8bYUa
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $value, !1 = $key, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
   36     3        IS_EQUAL                                                 !1, 'id'
          4      > JMPZ                                                     ~3, ->7
   37     5    >   ASSIGN_DIM                                               !2
          6        OP_DATA                                                  !0
   39     7    > > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.54 ms | 999 KiB | 15 Q