3v4l.org

run code in 300+ PHP versions simultaneously
<?php class helloworld { public static function my_static_method() { echo "we made it!"; } } $variable = new stdClass(); $variable->other = array('class' => 'helloworld'); $variable->other['class']->my_static_method();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gTHPv
function name:  (null)
number of ops:  10
compiled vars:  !0 = $variable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        ASSIGN_OBJ                                               !0, 'other'
          4        OP_DATA                                                  <array>
   12     5        FETCH_OBJ_R                                      ~5      !0, 'other'
          6        FETCH_DIM_R                                      ~6      ~5, 'class'
          7        INIT_METHOD_CALL                                         ~6, 'my_static_method'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class helloworld:
Function my_static_method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gTHPv
function name:  my_static_method
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'we+made+it%21'
    6     1      > RETURN                                                   null

End of function my_static_method

End of class helloworld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.31 ms | 938 KiB | 14 Q