3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace One\Two { class Test { public function __construct() { echo "Hello "; } } } namespace One { class Two { public function __construct() { echo "World"; } } } namespace Bob { use One\Two; new Two\Test; new Two; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQ7pB
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E >   NEW                                                  $0      'One%5CTwo%5CTest'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
   23     3        NEW                                                  $2      'One%5CTwo'
          4        DO_FCALL                                          0          
          5        FREE                                                         $2
   24     6      > RETURN                                                       1

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

End of function __construct

End of class One\Two\Test.

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

End of function __construct

End of class One\Two.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.51 ms | 2143 KiB | 13 Q