3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Foo { public function __construct(){echo"foo";} } } namespace Bar { class Bar{ public function __construct(){echo"bar";} } } namespace Test { new \Foo\Foo(); new \Bar\Bar(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Elcr3
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $0      'Foo%5CFoo'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   14     3        NEW                                              $2      'Bar%5CBar'
          4        DO_FCALL                                      0          
          5        FREE                                                     $2
   15     6      > RETURN                                                   1

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

End of function __construct

End of class Foo\Foo.

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

End of function __construct

End of class Bar\Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.57 ms | 934 KiB | 14 Q