3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace x { function a($x) { echo $x; } define('\x\a', '\x\a'); } namespace { var_dump(defined('a'), \x\a); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oclha
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_NS_FCALL_BY_NAME                                    'x%5Cdefine'
          1        SEND_VAL_EX                                              '%5Cx%5Ca'
          2        SEND_VAL_EX                                              '%5Cx%5Ca'
          3        DO_FCALL                                      0          
   11     4        INIT_FCALL                                               'var_dump'
          5        DEFINED                                          ~1      'a'
          6        SEND_VAL                                                 ~1
          7        FETCH_CONSTANT                                   ~2      'x%5Ca'
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                                 
   12    10      > RETURN                                                   1

Function x%5Ca:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oclha
function name:  x\a
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ECHO                                                     !0
    6     2      > RETURN                                                   null

End of function x%5Ca

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.01 ms | 1394 KiB | 17 Q