3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hex($me){ for($_i = 0; $_i < strlen($me); $_i += 2){ $w = substr($me, $_i, ($_i + 2)); print $w; } } $string = "1b2f190ad705d7c2afcac45447a31b053fada0c4"; hex($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b01qd
function name:  (null)
number of ops:  5
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, '1b2f190ad705d7c2afcac45447a31b053fada0c4'
    9     1        INIT_FCALL                                               'hex'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function hex:
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 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
Branch analysis from position: 3
filename:       /in/b01qd
function name:  hex
number of ops:  16
compiled vars:  !0 = $me, !1 = $_i, !2 = $w
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->12
    4     3    >   INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        ADD                                              ~4      !1, 2
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !2, $5
    5    10        ECHO                                                     !2
    3    11        ASSIGN_OP                                     1          !1, 2
         12    >   STRLEN                                           ~8      !0
         13        IS_SMALLER                                               !1, ~8
         14      > JMPNZ                                                    ~9, ->3
    7    15    > > RETURN                                                   null

End of function hex

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.96 ms | 1398 KiB | 16 Q