3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getasfkingnumber($to_encode){ $i='a'; $ii=0; $replace=array(); for($i='a';$i<'z';++$i){ ++$ii; $replace[$i]=$ii; } $ii=0; $ret=''; for($ii=0;$ii<strlen($to_encode);++$ii){ $ret.=$replace[$to_encode[$ii]]; } return $ret; } var_dump(getasfkingnumber("thequickbrownfox"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eMa3a
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'getasfkingnumber'
          2        SEND_VAL                                                 'thequickbrownfox'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function getasfkingnumber:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 16
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 16
Branch analysis from position: 23
Branch analysis from position: 16
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/eMa3a
function name:  getasfkingnumber
number of ops:  25
compiled vars:  !0 = $to_encode, !1 = $i, !2 = $ii, !3 = $replace, !4 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, 'a'
    4     2        ASSIGN                                                   !2, 0
    5     3        ASSIGN                                                   !3, <array>
    6     4        ASSIGN                                                   !1, 'a'
          5      > JMP                                                      ->10
    7     6    >   PRE_INC                                                  !2
    8     7        ASSIGN_DIM                                               !3, !1
          8        OP_DATA                                                  !2
    6     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 'z'
         11      > JMPNZ                                                    ~12, ->6
   11    12    >   ASSIGN                                                   !2, 0
   12    13        ASSIGN                                                   !4, ''
   13    14        ASSIGN                                                   !2, 0
         15      > JMP                                                      ->20
   14    16    >   FETCH_DIM_R                                      ~16     !0, !2
         17        FETCH_DIM_R                                      ~17     !3, ~16
         18        ASSIGN_OP                                     8          !4, ~17
   13    19        PRE_INC                                                  !2
         20    >   STRLEN                                           ~20     !0
         21        IS_SMALLER                                               !2, ~20
         22      > JMPNZ                                                    ~21, ->16
   17    23    > > RETURN                                                   !4
   18    24*     > RETURN                                                   null

End of function getasfkingnumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.83 ms | 1403 KiB | 16 Q