3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace fred; for($i=0; $i<3; $i++) { ($i == 1) && eval ('namespace fred; function strlen($s) { return 2* \strlen($s); }'); echo strlen("Hello World!"), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 2
Branch analysis from position: 14
Branch analysis from position: 2
Branch analysis from position: 6
filename:       /in/KSIDh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->12
    4     2    >   IS_EQUAL                                         ~2      !0, 1
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   INCLUDE_OR_EVAL                                  $3      'namespace+fred%3B+function+strlen%28%24s%29+%7B+return+2%2A+%5Cstrlen%28%24s%29%3B+%7D', EVAL
          5        BOOL                                             ~2      $3
    5     6    >   INIT_NS_FCALL_BY_NAME                                    'fred%5Cstrlen'
          7        SEND_VAL_EX                                              'Hello+World%21'
          8        DO_FCALL                                      0  $4      
          9        ECHO                                                     $4
         10        ECHO                                                     '%0A'
    3    11        PRE_INC                                                  !0
         12    >   IS_SMALLER                                               !0, 3
         13      > JMPNZ                                                    ~6, ->2
    6    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.12 ms | 1395 KiB | 15 Q