3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo \ Bar; class Baz { public static function qux() { return __NAMESPACE__; } } var_dump(Baz::qux());
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/FMkTc
function name:  (null)
number of ops:  7
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   NOP                                                      
  11     1        INIT_NS_FCALL_BY_NAME                                    
         2        INIT_STATIC_METHOD_CALL                                  'Foo%5CBar%5CBaz', 'qux'
         3        DO_FCALL                                      0  $1      
         4        SEND_VAR_NO_REF                               4          $1
         5        DO_FCALL                                      0          
         6      > RETURN                                                   1

Class Foo\Bar\Baz:
Function qux:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/FMkTc
function name:  qux
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E > > RETURN                                                   'Foo%5CBar'
   8     1*     > RETURN                                                   null

End of function qux

End of class Foo\Bar\Baz.

Generated using Vulcan Logic Dumper, using php 7.3.0