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'); echo $variable->other['class']; //$variable->other['class']::my_static_method();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GTsDW
function name:  (null)
number of ops:  9
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        ECHO                                                     ~6
   13     8      > 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/GTsDW
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:
182.84 ms | 1393 KiB | 13 Q