3v4l.org

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

Function encode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/FjGB0
function name:  encode
number of ops:  17
compiled vars:  !0 = $to_encode, !1 = $i, !2 = $len, !3 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, 0
    4     2        STRLEN                                           ~5      !0
          3        ASSIGN                                                   !2, ~5
    5     4        ASSIGN                                                   !3, ''
    6     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->13
    7     7    >   INIT_FCALL                                               'chr'
          8        FETCH_DIM_R                                      ~9      !0, !1
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        ASSIGN_OP                                     8          !3, $10
    6    12        PRE_INC                                                  !1
         13    >   IS_SMALLER                                               !1, !2
         14      > JMPNZ                                                    ~13, ->7
   10    15    > > RETURN                                                   !3
   11    16*     > RETURN                                                   null

End of function encode

Function decode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FjGB0
function name:  decode
number of ops:  6
compiled vars:  !0 = $numberstr, !1 = $ret, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        CAST                                          6  ~3      !0
          2        ASSIGN                                                   !0, ~3
   14     3        ASSIGN                                                   !1, ''
   15     4        ASSIGN                                                   !2, 0
   17     5      > RETURN                                                   null

End of function decode

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.21 ms | 1396 KiB | 17 Q