3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Text { function strlen($x) { return 'My namespace is just the word Text'; } } namespace AcmeComponents\SplineReticulator\Utilities\Text\Text { function strlen($x) { return 'My namespace has Text\Text at the end'; } } namespace AcmeComponents\SplineReticulator\Utilities\Text { echo Text\strlen("Hello World"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ojVcP
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                                   'acmecomponents%5Csplinereticulator%5Cutilities%5Ctext%5Ctext%5Cstrlen'
          1        SEND_VAL                                                     'Hello+World'
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
   17     4      > RETURN                                                       1

Function text%5Cstrlen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ojVcP
function name:  Text\strlen
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
    5     1      > RETURN                                                       'My+namespace+is+just+the+word+Text'
    6     2*     > RETURN                                                       null

End of function text%5Cstrlen

Function acmecomponents%5Csplinereticulator%5Cutilities%5Ctext%5Ctext%5Cstrlen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ojVcP
function name:  AcmeComponents\SplineReticulator\Utilities\Text\Text\strlen
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
   11     1      > RETURN                                                       'My+namespace+has+Text%5CText+at+the+end'
   12     2*     > RETURN                                                       null

End of function acmecomponents%5Csplinereticulator%5Cutilities%5Ctext%5Ctext%5Cstrlen

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.37 ms | 1600 KiB | 14 Q