3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; class SomeClass { function test() { } } namespace Foo\Foo; use Foo\Bar\SomeClass; /** * @return SomeClass * */ function getSome() { return new SomeClass(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPL8S
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                   1

Function foo%5Cfoo%5Cgetsome:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kPL8S
function name:  Foo\Foo\getSome
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $0      'Foo%5CBar%5CSomeClass'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
   16     3*     > RETURN                                                   null

End of function foo%5Cfoo%5Cgetsome

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

End of function test

End of class Foo\Bar\SomeClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.46 ms | 1384 KiB | 13 Q