3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test { class Test { public function hello() { echo "HI"; } } } namespace Test { class Test { public function hello() { echo "HI3"; } } } namespace Test3 { $var = new \Test\Test; $var->hello(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7TKE
function name:  (null)
number of ops:  7
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'test%5Ctest'
   21     1        NEW                                              $1      'Test%5CTest'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   23     4        INIT_METHOD_CALL                                         !0, 'hello'
          5        DO_FCALL                                      0          
   25     6      > RETURN                                                   1

Class Test\Test:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7TKE
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'HI'
    7     1      > RETURN                                                   null

End of function hello

End of class Test\Test.

Class Test\Test:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7TKE
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'HI3'
   16     1      > RETURN                                                   null

End of function hello

End of class Test\Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.5 ms | 1394 KiB | 13 Q