3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace foo{ $t = 'テキスト'; echo strlen($t); echo strlen($t); if(true){ function strlen($t){return mb_strlen($t);} } echo strlen($t); echo strlen($t); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/onORD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, '%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88'
    5     1        INIT_NS_FCALL_BY_NAME                                        'foo%5Cstrlen'
          2        SEND_VAR_EX                                                  !0
          3        DO_FCALL                                          0  $2      
          4        ECHO                                                         $2
    6     5        INIT_NS_FCALL_BY_NAME                                        'foo%5Cstrlen'
          6        SEND_VAR_EX                                                  !0
          7        DO_FCALL                                          0  $3      
          8        ECHO                                                         $3
    7     9      > JMPZ                                                         <true>, ->11
         10    >   DECLARE_FUNCTION                                             'foo%5Cstrlen'
    8    11    >   INIT_NS_FCALL_BY_NAME                                        'foo%5Cstrlen'
         12        SEND_VAR_EX                                                  !0
         13        DO_FCALL                                          0  $4      
         14        ECHO                                                         $4
    9    15        INIT_NS_FCALL_BY_NAME                                        'foo%5Cstrlen'
         16        SEND_VAR_EX                                                  !0
         17        DO_FCALL                                          0  $5      
         18        ECHO                                                         $5
   11    19      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/onORD
function name:  foo\strlen
number of ops:  6
compiled vars:  !0 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
          1        INIT_NS_FCALL_BY_NAME                                        'foo%5Cmb_strlen'
          2        SEND_VAR_EX                                                  !0
          3        DO_FCALL                                          0  $1      
          4      > RETURN                                                       $1
          5*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
150.74 ms | 1559 KiB | 10 Q