3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!function_exists("Encoder")){ function Encoder($inputvalue){ $output=array('test1','test2',$inputvalue); for($counter1=0; $counter1<3; $counter1++){ for($counter2=0; $counter2<strlen($output[$counter1]); $counter2++) $output[$counter1][$counter2] = chr(ord($output[$counter1][$counter2])-1); if($counter1==1) $output[2]=$output[0]($output[1]($output[2])); } return $output[2]; } $string1='ABC'; $funct='Encoder'; //calls encoder on "SylOSypNS0gvy08pzSrIBwA" $strin2=$funct('DEF'); $string2(); //calls encoder on string1 and concatenates it with a space an $VPXA $output_2=$string2('',$funct($string1)); //print string1 $string1(); $output_2(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 26
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/UHgjr
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string1, !1 = $funct, !2 = $strin2, !3 = $string2, !4 = $output_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'Encoder'
          2        DO_ICALL                                         $5      
          3        BOOL_NOT                                         ~6      $5
          4      > JMPZ                                                     ~6, ->26
    4     5    >   DECLARE_FUNCTION                                         'encoder'
   22     6        ASSIGN                                                   !0, 'ABC'
   24     7        ASSIGN                                                   !1, 'Encoder'
   27     8        INIT_DYNAMIC_CALL                                        !1
          9        SEND_VAL_EX                                              'DEF'
         10        DO_FCALL                                      0  $9      
         11        ASSIGN                                                   !2, $9
   29    12        INIT_DYNAMIC_CALL                                        !3
         13        DO_FCALL                                      0          
   31    14        INIT_DYNAMIC_CALL                                        !3
         15        SEND_VAL_EX                                              ''
         16        INIT_DYNAMIC_CALL                                        !1
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0  $12     
         19        SEND_VAR_NO_REF_EX                                       $12
         20        DO_FCALL                                      0  $13     
         21        ASSIGN                                                   !4, $13
   33    22        INIT_DYNAMIC_CALL                                        !0
         23        DO_FCALL                                      0          
   35    24        INIT_DYNAMIC_CALL                                        !4
         25        DO_FCALL                                      0          
   36    26    > > RETURN                                                   1

Function %00encoder%2Fin%2FUHgjr%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 7
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 9
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 40
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 7
Branch analysis from position: 43
Branch analysis from position: 7
Branch analysis from position: 40
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 9
Branch analysis from position: 26
Branch analysis from position: 9
filename:       /in/UHgjr
function name:  Encoder
number of ops:  46
compiled vars:  !0 = $inputvalue, !1 = $output, !2 = $counter1, !3 = $counter2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_ARRAY                                       ~4      'test1'
          2        ADD_ARRAY_ELEMENT                                ~4      'test2'
          3        ADD_ARRAY_ELEMENT                                ~4      !0
          4        ASSIGN                                                   !1, ~4
    8     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->41
   10     7    >   ASSIGN                                                   !3, 0
          8      > JMP                                                      ->22
   12     9    >   INIT_FCALL                                               'chr'
         10        INIT_FCALL                                               'ord'
         11        FETCH_DIM_R                                      ~10     !1, !2
         12        FETCH_DIM_R                                      ~11     ~10, !3
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                         $12     
         15        SUB                                              ~13     $12, 1
         16        SEND_VAL                                                 ~13
         17        DO_ICALL                                         $14     
         18        FETCH_DIM_W                                      $8      !1, !2
         19        ASSIGN_DIM                                               $8, !3
         20        OP_DATA                                                  $14
   10    21        PRE_INC                                                  !3
         22    >   FETCH_DIM_R                                      ~16     !1, !2
         23        STRLEN                                           ~17     ~16
         24        IS_SMALLER                                               !3, ~17
         25      > JMPNZ                                                    ~18, ->9
   14    26    >   IS_EQUAL                                                 !2, 1
         27      > JMPZ                                                     ~19, ->40
         28    >   FETCH_DIM_R                                      ~21     !1, 0
         29        INIT_DYNAMIC_CALL                                        ~21
         30        FETCH_DIM_R                                      ~22     !1, 1
         31        INIT_DYNAMIC_CALL                                        ~22
         32        CHECK_FUNC_ARG                                           
         33        FETCH_DIM_FUNC_ARG                               $23     !1, 2
         34        SEND_FUNC_ARG                                            $23
         35        DO_FCALL                                      0  $24     
         36        SEND_VAR_NO_REF_EX                                       $24
         37        DO_FCALL                                      0  $25     
         38        ASSIGN_DIM                                               !1, 2
         39        OP_DATA                                                  $25
    8    40    >   PRE_INC                                                  !2
         41    >   IS_SMALLER                                               !2, 3
         42      > JMPNZ                                                    ~27, ->7
   18    43    >   FETCH_DIM_R                                      ~28     !1, 2
         44      > RETURN                                                   ~28
   20    45*     > RETURN                                                   null

End of function %00encoder%2Fin%2FUHgjr%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.44 ms | 1400 KiB | 19 Q