3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static function bar() {} } $a['class'] = 'foo'; $a['class']::bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hI2I6
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_DIM                                               !0, 'class'
          1        OP_DATA                                                  'foo'
    8     2        FETCH_DIM_R                                      ~2      !0, 'class'
          3        FETCH_CLASS                                   0  $3      ~2
          4        INIT_STATIC_METHOD_CALL                                  $3, 'bar'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hI2I6
function name:  bar
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.45 ms | 1393 KiB | 13 Q