3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ""; for ($t=0; $t<8; $t++) $input .= chr($t); echo "input = ".$input."\n\n"; var_dump(strpos($input, ".")); for ($t=0; $t<strlen($input); $t++) echo "[".ord(substr($input, $t, 1))."] ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 22
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 22
Branch analysis from position: 37
Branch analysis from position: 22
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/JBovq
function name:  (null)
number of ops:  38
compiled vars:  !0 = $input, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
          3    >   INIT_FCALL                                               'chr'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN_OP                                     8          !0, $4
          7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 8
          9      > JMPNZ                                                    ~7, ->3
    6    10    >   CONCAT                                           ~8      'input+%3D+', !0
         11        CONCAT                                           ~9      ~8, '%0A%0A'
         12        ECHO                                                     ~9
    7    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '.'
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                                 
    9    20        ASSIGN                                                   !1, 0
         21      > JMP                                                      ->34
         22    >   INIT_FCALL                                               'ord'
         23        INIT_FCALL                                               'substr'
         24        SEND_VAR                                                 !0
         25        SEND_VAR                                                 !1
         26        SEND_VAL                                                 1
         27        DO_ICALL                                         $13     
         28        SEND_VAR                                                 $13
         29        DO_ICALL                                         $14     
         30        CONCAT                                           ~15     '%5B', $14
         31        CONCAT                                           ~16     ~15, '%5D+'
         32        ECHO                                                     ~16
         33        PRE_INC                                                  !1
         34    >   STRLEN                                           ~18     !0
         35        IS_SMALLER                                               !1, ~18
         36      > JMPNZ                                                    ~19, ->22
         37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.7 ms | 1392 KiB | 23 Q