3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Fill up array with names $a[]="Anna"; $a[]="Brittany"; $a[]="Cinderella"; $a[]="Diana"; $a[]="Eva"; $a[]="Fiona"; $a[]="Gunda"; $a[]="Hege"; $a[]="Inga"; $a[]="Johanna"; $a[]="Kitty"; $a[]="Linda"; $a[]="Nina"; $a[]="Ophelia"; $a[]="Petunia"; $a[]="Amanda"; $a[]="Raquel"; $a[]="Cindy"; $a[]="Doris"; $a[]="Eve"; $a[]="Evita"; $a[]="Sunniva"; $a[]="Tove"; $a[]="Unni"; $a[]="Violet"; $a[]="Liza"; $a[]="Elizabeth"; $a[]="Ellen"; $a[]="Wenche"; $a[]="Vicky"; //get the q parameter from URL $q="E{$a[25]}"; //lookup all hints from array if length of q>0 if (strlen($q) > 0) { $hint=""; for($i=0; $i<count($a); $i++) { if (strtolower($q)==strtolower(substr($a[$i],0,strlen($q)))) { if ($hint=="") { $hint=$a[$i]; } else { $hint=$hint." , ".$a[$i]; } } } } // Set output to "no suggestion" if no hint were found // or to the correct values if ($hint == "") { $response="no suggestion"; } else { $response=$hint; } //output the response echo $response; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 67, Position 2 = 98
Branch analysis from position: 67
1 jumps found. (Code = 42) Position 1 = 95
Branch analysis from position: 95
2 jumps found. (Code = 44) Position 1 = 98, Position 2 = 70
Branch analysis from position: 98
2 jumps found. (Code = 43) Position 1 = 100, Position 2 = 102
Branch analysis from position: 100
1 jumps found. (Code = 42) Position 1 = 103
Branch analysis from position: 103
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 102
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 70
2 jumps found. (Code = 43) Position 1 = 85, Position 2 = 94
Branch analysis from position: 85
2 jumps found. (Code = 43) Position 1 = 87, Position 2 = 90
Branch analysis from position: 87
1 jumps found. (Code = 42) Position 1 = 94
Branch analysis from position: 94
2 jumps found. (Code = 44) Position 1 = 98, Position 2 = 70
Branch analysis from position: 98
Branch analysis from position: 70
Branch analysis from position: 90
2 jumps found. (Code = 44) Position 1 = 98, Position 2 = 70
Branch analysis from position: 98
Branch analysis from position: 70
Branch analysis from position: 94
Branch analysis from position: 98
filename:       /in/pJiql
function name:  (null)
number of ops:  105
compiled vars:  !0 = $a, !1 = $q, !2 = $hint, !3 = $i, !4 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  'Anna'
    4     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  'Brittany'
    5     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  'Cinderella'
    6     6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  'Diana'
    7     8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  'Eva'
    8    10        ASSIGN_DIM                                               !0
         11        OP_DATA                                                  'Fiona'
    9    12        ASSIGN_DIM                                               !0
         13        OP_DATA                                                  'Gunda'
   10    14        ASSIGN_DIM                                               !0
         15        OP_DATA                                                  'Hege'
   11    16        ASSIGN_DIM                                               !0
         17        OP_DATA                                                  'Inga'
   12    18        ASSIGN_DIM                                               !0
         19        OP_DATA                                                  'Johanna'
   13    20        ASSIGN_DIM                                               !0
         21        OP_DATA                                                  'Kitty'
   14    22        ASSIGN_DIM                                               !0
         23        OP_DATA                                                  'Linda'
   15    24        ASSIGN_DIM                                               !0
         25        OP_DATA                                                  'Nina'
   16    26        ASSIGN_DIM                                               !0
         27        OP_DATA                                                  'Ophelia'
   17    28        ASSIGN_DIM                                               !0
         29        OP_DATA                                                  'Petunia'
   18    30        ASSIGN_DIM                                               !0
         31        OP_DATA                                                  'Amanda'
   19    32        ASSIGN_DIM                                               !0
         33        OP_DATA                                                  'Raquel'
   20    34        ASSIGN_DIM                                               !0
         35        OP_DATA                                                  'Cindy'
   21    36        ASSIGN_DIM                                               !0
         37        OP_DATA                                                  'Doris'
   22    38        ASSIGN_DIM                                               !0
         39        OP_DATA                                                  'Eve'
   23    40        ASSIGN_DIM                                               !0
         41        OP_DATA                                                  'Evita'
   24    42        ASSIGN_DIM                                               !0
         43        OP_DATA                                                  'Sunniva'
   25    44        ASSIGN_DIM                                               !0
         45        OP_DATA                                                  'Tove'
   26    46        ASSIGN_DIM                                               !0
         47        OP_DATA                                                  'Unni'
   27    48        ASSIGN_DIM                                               !0
         49        OP_DATA                                                  'Violet'
   28    50        ASSIGN_DIM                                               !0
         51        OP_DATA                                                  'Liza'
   29    52        ASSIGN_DIM                                               !0
         53        OP_DATA                                                  'Elizabeth'
   30    54        ASSIGN_DIM                                               !0
         55        OP_DATA                                                  'Ellen'
   31    56        ASSIGN_DIM                                               !0
         57        OP_DATA                                                  'Wenche'
   32    58        ASSIGN_DIM                                               !0
         59        OP_DATA                                                  'Vicky'
   35    60        NOP                                                      
         61        FETCH_DIM_R                                      ~35     !0, 25
         62        FAST_CONCAT                                      ~36     'E', ~35
         63        ASSIGN                                                   !1, ~36
   38    64        STRLEN                                           ~38     !1
         65        IS_SMALLER                                               0, ~38
         66      > JMPZ                                                     ~39, ->98
   40    67    >   ASSIGN                                                   !2, ''
   41    68        ASSIGN                                                   !3, 0
         69      > JMP                                                      ->95
   43    70    >   INIT_FCALL                                               'strtolower'
         71        SEND_VAR                                                 !1
         72        DO_ICALL                                         $42     
         73        INIT_FCALL                                               'strtolower'
         74        INIT_FCALL                                               'substr'
         75        FETCH_DIM_R                                      ~43     !0, !3
         76        SEND_VAL                                                 ~43
         77        SEND_VAL                                                 0
         78        STRLEN                                           ~44     !1
         79        SEND_VAL                                                 ~44
         80        DO_ICALL                                         $45     
         81        SEND_VAR                                                 $45
         82        DO_ICALL                                         $46     
         83        IS_EQUAL                                                 $42, $46
         84      > JMPZ                                                     ~47, ->94
   45    85    >   IS_EQUAL                                                 !2, ''
         86      > JMPZ                                                     ~48, ->90
   47    87    >   FETCH_DIM_R                                      ~49     !0, !3
         88        ASSIGN                                                   !2, ~49
         89      > JMP                                                      ->94
   51    90    >   CONCAT                                           ~51     !2, '+%2C+'
         91        FETCH_DIM_R                                      ~52     !0, !3
         92        CONCAT                                           ~53     ~51, ~52
         93        ASSIGN                                                   !2, ~53
   41    94    >   PRE_INC                                                  !3
         95    >   COUNT                                            ~56     !0
         96        IS_SMALLER                                               !3, ~56
         97      > JMPNZ                                                    ~57, ->70
   59    98    >   IS_EQUAL                                                 !2, ''
         99      > JMPZ                                                     ~58, ->102
   61   100    >   ASSIGN                                                   !4, 'no+suggestion'
        101      > JMP                                                      ->103
   65   102    >   ASSIGN                                                   !4, !2
   69   103    >   ECHO                                                     !4
   70   104      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.41 ms | 1404 KiB | 17 Q