3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array(); $my_array['id'] = 4127 ; $my_array['nick'] = 'Jonas'; $my_array['dte79855545'] = 5; $my_array['dte79855545'] = 5; $my_array['dte1111'] = 1; $my_array['dte2222'] = 2; $my_array['dte3333'] = 3; $my_array['dte4444'] = 4; $my_array_of_dte = array(); $dte_inc = 0; foreach($my_array as $key => $value) { if (substr($key,0,3)=='dte') { $my_array_of_dte[$dte_inc]['id'] = substr($key,3); $my_array_of_dte[$dte_inc]['value'] = $value; $dte_inc++; } } for($inc=0;$inc<$dte_inc;$inc++) { $query = "INSERT INTO user_count (id, nick, dte, count) VALUES ('".$value['id']."', '".$value['nick']."', '".$my_array_of_dte[$inc]['id']."', '".$my_array_of_dte[$inc]['value']."')"; // $result = mysql_query($query); echo $query."\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 41
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 41
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 40
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 40
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 62
Branch analysis from position: 62
2 jumps found. (Code = 44) Position 1 = 64, Position 2 = 44
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 64, Position 2 = 44
Branch analysis from position: 64
Branch analysis from position: 44
Branch analysis from position: 41
filename:       /in/HCv1Z
function name:  (null)
number of ops:  65
compiled vars:  !0 = $my_array, !1 = $my_array_of_dte, !2 = $dte_inc, !3 = $value, !4 = $key, !5 = $inc, !6 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'id'
          2        OP_DATA                                                  4127
    5     3        ASSIGN_DIM                                               !0, 'nick'
          4        OP_DATA                                                  'Jonas'
    6     5        ASSIGN_DIM                                               !0, 'dte79855545'
          6        OP_DATA                                                  5
    7     7        ASSIGN_DIM                                               !0, 'dte79855545'
          8        OP_DATA                                                  5
    8     9        ASSIGN_DIM                                               !0, 'dte1111'
         10        OP_DATA                                                  1
    9    11        ASSIGN_DIM                                               !0, 'dte2222'
         12        OP_DATA                                                  2
   10    13        ASSIGN_DIM                                               !0, 'dte3333'
         14        OP_DATA                                                  3
   11    15        ASSIGN_DIM                                               !0, 'dte4444'
         16        OP_DATA                                                  4
   14    17        ASSIGN                                                   !1, <array>
   16    18        ASSIGN                                                   !2, 0
   18    19      > FE_RESET_R                                       $18     !0, ->41
         20    > > FE_FETCH_R                                       ~19     $18, !3, ->41
         21    >   ASSIGN                                                   !4, ~19
   20    22        INIT_FCALL                                               'substr'
         23        SEND_VAR                                                 !4
         24        SEND_VAL                                                 0
         25        SEND_VAL                                                 3
         26        DO_ICALL                                         $21     
         27        IS_EQUAL                                                 $21, 'dte'
         28      > JMPZ                                                     ~22, ->40
   22    29    >   INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !4
         31        SEND_VAL                                                 3
         32        DO_ICALL                                         $25     
         33        FETCH_DIM_W                                      $23     !1, !2
         34        ASSIGN_DIM                                               $23, 'id'
         35        OP_DATA                                                  $25
   23    36        FETCH_DIM_W                                      $26     !1, !2
         37        ASSIGN_DIM                                               $26, 'value'
         38        OP_DATA                                                  !3
   25    39        PRE_INC                                                  !2
   18    40    > > JMP                                                      ->20
         41    >   FE_FREE                                                  $18
   29    42        ASSIGN                                                   !5, 0
         43      > JMP                                                      ->62
   31    44    >   FETCH_DIM_R                                      ~30     !3, 'id'
         45        CONCAT                                           ~31     'INSERT+INTO+user_count+%28id%2C+nick%2C+dte%2C+count%29+VALUES+%28%27', ~30
         46        CONCAT                                           ~32     ~31, '%27%2C+%27'
         47        FETCH_DIM_R                                      ~33     !3, 'nick'
         48        CONCAT                                           ~34     ~32, ~33
         49        CONCAT                                           ~35     ~34, '%27%2C+%27'
         50        FETCH_DIM_R                                      ~36     !1, !5
         51        FETCH_DIM_R                                      ~37     ~36, 'id'
         52        CONCAT                                           ~38     ~35, ~37
         53        CONCAT                                           ~39     ~38, '%27%2C+%27'
         54        FETCH_DIM_R                                      ~40     !1, !5
         55        FETCH_DIM_R                                      ~41     ~40, 'value'
         56        CONCAT                                           ~42     ~39, ~41
         57        CONCAT                                           ~43     ~42, '%27%29'
         58        ASSIGN                                                   !6, ~43
   33    59        CONCAT                                           ~45     !6, '%0A'
         60        ECHO                                                     ~45
   29    61        PRE_INC                                                  !5
         62    >   IS_SMALLER                                               !5, !2
         63      > JMPNZ                                                    ~47, ->44
   35    64    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.33 ms | 1400 KiB | 15 Q