3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Hello { public function sayHello() { echo 'Hello'; } } trait World { public function sayHello() { echo 'World'; } } class MyHelloWorld { use Hello, World; } $o = new MyHelloWorld(); $o->sayHello();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W7neT
function name:  (null)
number of ops:  7
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   DECLARE_CLASS                                            'myhelloworld'
   19     1        NEW                                              $1      'MyHelloWorld'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   20     4        INIT_METHOD_CALL                                         !0, 'sayHello'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function sayhello

End of class Hello.

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

End of function sayhello

End of class World.

Class MyHelloWorld: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.7 ms | 1393 KiB | 13 Q