3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { function bar(); } class StandardFoo implements foo { function bar() { var_dump(func_get_args()); } } $obj = new StandardFoo(); $extraDebugInfo = 'shamoan'; $obj->bar($extraDebugInfo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eY5oT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $obj, !1 = $extraDebugInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'standardfoo'
   17     1        NEW                                              $2      'StandardFoo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   20     4        ASSIGN                                                   !1, 'shamoan'
   21     5        INIT_METHOD_CALL                                         !0, 'bar'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eY5oT
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.

Class StandardFoo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eY5oT
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   13     4      > RETURN                                                   null

End of function bar

End of class StandardFoo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.16 ms | 1395 KiB | 15 Q