3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { const MAX = 1; function somethig ($param) { var_dump($param); } class MAX { public $property; } } namespace Bar { use const Foo\MAX; class Barek { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ufnAJ
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'Foo%5CMAX', 1
   25     1      > RETURN                                                   1

Function foo%5Csomethig:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ufnAJ
function name:  Foo\somethig
number of ops:  5
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   10     4      > RETURN                                                   null

End of function foo%5Csomethig

Class Foo\MAX: [no user functions]
Class Bar\Barek: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.7 ms | 1398 KiB | 15 Q