3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public static function something() { $somethingElseFunction = "somethingElse"; call_user_func_array(array(__CLASS__, $somethingElseFunction), array("bla")); } public static function somethingElse($a) { var_dump($a); } } test::something();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7m0s
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'test', 'something'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class test:
Function something:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7m0s
function name:  something
number of ops:  8
compiled vars:  !0 = $somethingElseFunction
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'somethingElse'
    7     1        INIT_ARRAY                                       ~2      'test'
          2        ADD_ARRAY_ELEMENT                                ~2      !0
          3        INIT_USER_CALL                                0          'call_user_func_array', ~2
          4        SEND_ARRAY                                               <array>
          5        CHECK_UNDEF_ARGS                                         
          6        DO_FCALL                                      0          
    8     7      > RETURN                                                   null

End of function something

Function somethingelse:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7m0s
function name:  somethingElse
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   null

End of function somethingelse

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.04 ms | 1395 KiB | 15 Q