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 { echo Foo\MAX; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QmIqt
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'Foo%5CMAX', 1
   20     1        FETCH_CONSTANT                                   ~0      'Bar%5CFoo%5CMAX'
          2        ECHO                                                     ~0
   21     3      > RETURN                                                   1

Function foo%5Csomethig:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QmIqt
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]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.55 ms | 1394 KiB | 15 Q