3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace My; function f() {} trait T {} class C {} interface I {} const CON = 10; $a = 11; var_dump(\WTF::class, f::class, T::class, C::class, I::class, CON::class);
based on kigqm
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/99Ys1
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   NOP                                                      
   5     1        NOP                                                      
   6     2        NOP                                                      
   7     3        NOP                                                      
   8     4        DECLARE_CONST                                            'My%5CCON', 10
   9     5        ASSIGN                                                   !0, 11
  10     6        INIT_NS_FCALL_BY_NAME                                    
         7        SEND_VAL_EX                                              'WTF'
         8        SEND_VAL_EX                                              'My%5Cf'
         9        SEND_VAL_EX                                              'My%5CT'
        10        SEND_VAL_EX                                              'My%5CC'
        11        SEND_VAL_EX                                              'My%5CI'
        12        SEND_VAL_EX                                              'My%5CCON'
        13        DO_FCALL                                      0          
        14      > RETURN                                                   1

Function my%5Cf:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/99Ys1
function name:  My\f
number of ops:  1
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E > > RETURN                                                   null

End of function my%5Cf

Class My\T: [no user functions]
Class My\C: [no user functions]
Class My\I: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0