3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A\B\C; const E_ERROR = 45; function strlen($str) { return strlen($str) - 1; } echo strlen('abx'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jicNm
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                            'A%5CB%5CC%5CE_ERROR', 45
   12     1        INIT_NS_FCALL_BY_NAME                                    'A%5CB%5CC%5Cstrlen'
          2        SEND_VAL_EX                                              'abx'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
   15     5      > RETURN                                                   1

Function a%5Cb%5Cc%5Cstrlen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jicNm
function name:  A\B\C\strlen
number of ops:  7
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_NS_FCALL_BY_NAME                                    'A%5CB%5CC%5Cstrlen'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4        SUB                                              ~2      $1, 1
          5      > RETURN                                                   ~2
    8     6*     > RETURN                                                   null

End of function a%5Cb%5Cc%5Cstrlen

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.59 ms | 1386 KiB | 15 Q