3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait HelloWorld { public function sayHello() { echo 'Hello World!'; } } trait HelloWorld1 { public function sayHello() { echo 'Hello World!'; } } class TheWorldIsNotEnough { use HelloWorld; use HelloWorld1; } $o = new TheWorldIsNotEnough(); $o->sayHello(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1coL8
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                                            'theworldisnotenough'
   19     1        NEW                                              $1      'TheWorldIsNotEnough'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   20     4        INIT_METHOD_CALL                                         !0, 'sayHello'
          5        DO_FCALL                                      0          
   21     6      > RETURN                                                   1

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

End of function sayhello

End of class HelloWorld.

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

End of function sayhello

End of class HelloWorld1.

Class TheWorldIsNotEnough: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1385 KiB | 13 Q