3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo; var_dump(strlen('x')); if (true) { function strlen($x) { return 42; } } var_dump(strlen('x'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/mnVWO
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'foo%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'foo%5Cstrlen'
          2        SEND_VAL_EX                                              'x'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
    7     6      > JMPZ                                                     <true>, ->8
    8     7    >   DECLARE_FUNCTION                                         'foo%5Cstrlen'
   11     8    >   INIT_NS_FCALL_BY_NAME                                    'foo%5Cvar_dump'
          9        INIT_NS_FCALL_BY_NAME                                    'foo%5Cstrlen'
         10        SEND_VAL_EX                                              'x'
         11        DO_FCALL                                      0  $2      
         12        SEND_VAR_NO_REF_EX                                       $2
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Function %00foo%5Cstrlen%2Fin%2FmnVWO%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mnVWO
function name:  foo\strlen
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1      > RETURN                                                   42
          2*     > RETURN                                                   null

End of function %00foo%5Cstrlen%2Fin%2FmnVWO%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.98 ms | 1395 KiB | 17 Q