3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo\Bar; class Bar {} namespace Foo\Baz; use Foo\Bar; class Baz { public function __construct(){ $str1 = "Bar"; $str2 = "\\Foo\\Bar"; $a = new \Foo\Bar; var_dump($a); } } $baz = new Baz();
based on km8TV
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5gNqs
function name:  (null)
number of ops:  6
compiled vars:  !0 = $baz
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   NOP                                                      
  10     1        NOP                                                      
  20     2        NEW                                              $3      :-5
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !0, $3
         5      > RETURN                                                   1

Class Foo\Bar\Bar: [no user functions]
Class Foo\Baz\Baz:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5gNqs
function name:  __construct
number of ops:  9
compiled vars:  !0 = $str1, !1 = $str2, !2 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  12     0  E >   ASSIGN                                                   !0, 'Bar'
  13     1        ASSIGN                                                   !1, '%5CFoo%5CBar'
  15     2        NEW                                              $5      :-3
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !2, $5
  16     5        INIT_NS_FCALL_BY_NAME                                    'Foo%5CBaz%5Cvar_dump'
         6        SEND_VAR_EX                                              !2
         7        DO_FCALL                                      0          
  17     8      > RETURN                                                   null

End of function __construct

End of class Foo\Baz\Baz.

Generated using Vulcan Logic Dumper, using php 7.3.0