3v4l.org

run code in 300+ PHP versions simultaneously
<?php (new aa)->foo(); class aa { function foo() {} } (new bb)->foo(); interface b {} class bb implements b { function foo() {} } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amemp
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $0      'aa'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'foo'
          3        DO_FCALL                                      0          
    5     4        NEW                                              $3      'bb'
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $3, 'foo'
          7        DO_FCALL                                      0          
    7     8        DECLARE_CLASS                                            'bb'
    8     9      > RETURN                                                   1

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

End of function foo

End of class aa.

Class b: [no user functions]
Class bb:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amemp
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function foo

End of class bb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.63 ms | 1393 KiB | 13 Q