3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { function myFunction() {} const MY_CONSTANT = 0; } namespace B { var_dump( strpos::class, PHP_EOL::class, \A\myFunction::class, \A\MY_CONSTANT::class ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FHYYd
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'A%5CMY_CONSTANT', 0
    9     1        INIT_NS_FCALL_BY_NAME                                    'B%5Cvar_dump'
   10     2        SEND_VAL_EX                                              'B%5Cstrpos'
   11     3        SEND_VAL_EX                                              'B%5CPHP_EOL'
   12     4        SEND_VAL_EX                                              'A%5CmyFunction'
   13     5        SEND_VAL_EX                                              'A%5CMY_CONSTANT'
          6        DO_FCALL                                      0          
   15     7      > RETURN                                                   1

Function a%5Cmyfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FHYYd
function name:  A\myFunction
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function a%5Cmyfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.85 ms | 1394 KiB | 15 Q