3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function x() { print "hi\n"; } } call_user_method('x', new foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQQ0W
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL_BY_NAME                                       'call_user_method'
          1        SEND_VAL_EX                                              'x'
          2        NEW                                              $0      'foo'
          3        DO_FCALL                                      0          
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function x

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.43 ms | 1393 KiB | 13 Q