3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\WWW { const MAXI44 = 1; const MAXI55 = 41; function somethig ($param) { return 567; } function MAXI2 ($param) { var_dump($param); } class FuntionXXX { public $property; } } namespace Bar { use const Foo\WWW; echo WWW\MAXI44; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7JZ9Q
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'Foo%5CWWW%5CMAXI44', 1
    7     1        DECLARE_CONST                                            'Foo%5CWWW%5CMAXI55', 41
   28     2        FETCH_CONSTANT                                   ~0      'Bar%5CWWW%5CMAXI44'
          3        ECHO                                                     ~0
   29     4      > RETURN                                                   1

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

End of function foo%5Cwww%5Csomethig

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

End of function foo%5Cwww%5Cmaxi2

Class Foo\WWW\FuntionXXX: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.93 ms | 1395 KiB | 15 Q