3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; function strlen($s){ return 50; } namespace Bar; use Foo; echo strlen('b');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B3XsF
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_NS_FCALL_BY_NAME                                    'Bar%5Cstrlen'
          1        SEND_VAL_EX                                              'b'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function foo%5Cstrlen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B3XsF
function name:  Foo\strlen
number of ops:  3
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1      > RETURN                                                   50
    7     2*     > RETURN                                                   null

End of function foo%5Cstrlen

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.22 ms | 1398 KiB | 15 Q