3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 256; $i++) { $str = str_pad(strtoupper(dechex($i)), 2, '0', STR_PAD_LEFT); $p1 = [$str[0]]; if ($str[0] >= 'A' && $str[0] <= 'F') { $p1[] = strtolower($str[0]); } $p2 = [$str[1]]; if ($str[1] >= 'A' && $str[1] <= 'F') { $p2[] = strtolower($str[1]); } foreach ($p1 as $c1) foreach ($p2 as $c2) echo "const \\x{$c1}{$c2} = \"\\x{$str}\";\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 2
Branch analysis from position: 65
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 31
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 37, Position 2 = 40
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 47
Branch analysis from position: 41
2 jumps found. (Code = 77) Position 1 = 48, Position 2 = 61
Branch analysis from position: 48
2 jumps found. (Code = 78) Position 1 = 49, Position 2 = 61
Branch analysis from position: 49
2 jumps found. (Code = 77) Position 1 = 50, Position 2 = 59
Branch analysis from position: 50
2 jumps found. (Code = 78) Position 1 = 51, Position 2 = 59
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
Branch analysis from position: 59
Branch analysis from position: 61
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 2
Branch analysis from position: 65
Branch analysis from position: 2
Branch analysis from position: 61
Branch analysis from position: 47
Branch analysis from position: 40
Branch analysis from position: 31
Branch analysis from position: 24
filename:       /in/cBOU9
function name:  (null)
number of ops:  66
compiled vars:  !0 = $i, !1 = $str, !2 = $p1, !3 = $p2, !4 = $c1, !5 = $c2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->63
    4     2    >   INIT_FCALL                                               'str_pad'
          3        INIT_FCALL                                               'strtoupper'
          4        INIT_FCALL                                               'dechex'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        SEND_VAR                                                 $7
          8        DO_ICALL                                         $8      
          9        SEND_VAR                                                 $8
         10        SEND_VAL                                                 2
         11        SEND_VAL                                                 '0'
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !1, $9
    6    15        FETCH_DIM_R                                      ~11     !1, 0
         16        INIT_ARRAY                                       ~12     ~11
         17        ASSIGN                                                   !2, ~12
    7    18        FETCH_DIM_R                                      ~14     !1, 0
         19        IS_SMALLER_OR_EQUAL                              ~15     'A', ~14
         20      > JMPZ_EX                                          ~15     ~15, ->24
         21    >   FETCH_DIM_R                                      ~16     !1, 0
         22        IS_SMALLER_OR_EQUAL                              ~17     ~16, 'F'
         23        BOOL                                             ~15     ~17
         24    > > JMPZ                                                     ~15, ->31
    8    25    >   INIT_FCALL                                               'strtolower'
         26        FETCH_DIM_R                                      ~19     !1, 0
         27        SEND_VAL                                                 ~19
         28        DO_ICALL                                         $20     
         29        ASSIGN_DIM                                               !2
         30        OP_DATA                                                  $20
   11    31    >   FETCH_DIM_R                                      ~21     !1, 1
         32        INIT_ARRAY                                       ~22     ~21
         33        ASSIGN                                                   !3, ~22
   12    34        FETCH_DIM_R                                      ~24     !1, 1
         35        IS_SMALLER_OR_EQUAL                              ~25     'A', ~24
         36      > JMPZ_EX                                          ~25     ~25, ->40
         37    >   FETCH_DIM_R                                      ~26     !1, 1
         38        IS_SMALLER_OR_EQUAL                              ~27     ~26, 'F'
         39        BOOL                                             ~25     ~27
         40    > > JMPZ                                                     ~25, ->47
   13    41    >   INIT_FCALL                                               'strtolower'
         42        FETCH_DIM_R                                      ~29     !1, 1
         43        SEND_VAL                                                 ~29
         44        DO_ICALL                                         $30     
         45        ASSIGN_DIM                                               !3
         46        OP_DATA                                                  $30
   16    47    > > FE_RESET_R                                       $31     !2, ->61
         48    > > FE_FETCH_R                                               $31, !4, ->61
         49    > > FE_RESET_R                                       $32     !3, ->59
         50    > > FE_FETCH_R                                               $32, !5, ->59
         51    >   ROPE_INIT                                     6  ~34     'const+%5Cx'
         52        ROPE_ADD                                      1  ~34     ~34, !4
         53        ROPE_ADD                                      2  ~34     ~34, !5
         54        ROPE_ADD                                      3  ~34     ~34, '+%3D+%22%5Cx'
         55        ROPE_ADD                                      4  ~34     ~34, !1
         56        ROPE_END                                      5  ~33     ~34, '%22%3B%0A'
         57        ECHO                                                     ~33
         58      > JMP                                                      ->50
         59    >   FE_FREE                                                  $32
         60      > JMP                                                      ->48
         61    >   FE_FREE                                                  $31
    3    62        PRE_INC                                                  !0
         63    >   IS_SMALLER                                               !0, 256
         64      > JMPNZ                                                    ~38, ->2
   17    65    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.13 ms | 1400 KiB | 21 Q