3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A\B\C; function strlen($str) { return 42; } print strlen("Life, Universe and Everything"); // prints 42 print mb_strlen("Life, Universe and Everything"); // calls global function and prints 30
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IsuEj
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'A%5CB%5CC%5Cstrlen'
          1        SEND_VAL_EX                                              'Life%2C+Universe+and+Everything'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    9     4        INIT_NS_FCALL_BY_NAME                                    'A%5CB%5CC%5Cmb_strlen'
          5        SEND_VAL_EX                                              'Life%2C+Universe+and+Everything'
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
          8      > 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/IsuEj
function name:  A\B\C\strlen
number of ops:  3
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1      > RETURN                                                   42
    7     2*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.82 ms | 1394 KiB | 17 Q