3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $bar = []; } $foo = new foo(); $foo->bar['baz'] = function() { echo 'hi!'; }; $foo->bar['baz']();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oIJrg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FoIJrg%3A9%240'
          4        FETCH_OBJ_W                                      $4      !0, 'bar'
          5        ASSIGN_DIM                                               $4, 'baz'
          6        OP_DATA                                                  ~6
   11     7        FETCH_OBJ_R                                      ~7      !0, 'bar'
          8        FETCH_DIM_R                                      ~8      ~7, 'baz'
          9        INIT_DYNAMIC_CALL                                        ~8
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FoIJrg%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oIJrg
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'hi%21'
          1      > RETURN                                                   null

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

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.58 ms | 1394 KiB | 13 Q