3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \stdClass; $b = new \stdClass; $c = new \stdClass; $a->data = 123; $a->setter = "Abu"; $b->content = [$a, $a]; $b->data = '123'; $c->createdAt = '2017-01-01 12:00:00'; $c->payload = $b; var_dump($c); $callback = function($item, $key) { var_dump($item); }; array_walk_recursive($c, $callback);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1KGsO
function name:  (null)
number of ops:  33
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        NEW                                              $7      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $7
    5     6        NEW                                              $10     'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $10
    7     9        ASSIGN_OBJ                                               !0, 'data'
         10        OP_DATA                                                  123
    8    11        ASSIGN_OBJ                                               !0, 'setter'
         12        OP_DATA                                                  'Abu'
   10    13        INIT_ARRAY                                       ~16     !0
         14        ADD_ARRAY_ELEMENT                                ~16     !0
         15        ASSIGN_OBJ                                               !1, 'content'
         16        OP_DATA                                                  ~16
   11    17        ASSIGN_OBJ                                               !1, 'data'
         18        OP_DATA                                                  '123'
   13    19        ASSIGN_OBJ                                               !2, 'createdAt'
         20        OP_DATA                                                  '2017-01-01+12%3A00%3A00'
   14    21        ASSIGN_OBJ                                               !2, 'payload'
         22        OP_DATA                                                  !1
   16    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
   18    26        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F1KGsO%3A18%240'
         27        ASSIGN                                                   !3, ~21
   23    28        INIT_FCALL                                               'array_walk_recursive'
         29        SEND_REF                                                 !2
         30        SEND_VAR                                                 !3
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F1KGsO%3A18%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1KGsO
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $item, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   19     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   21     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F1KGsO%3A18%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.81 ms | 1400 KiB | 17 Q