3v4l.org

run code in 300+ PHP versions simultaneously
<?php $levers = array(array("comparateur-google_shopping", "comparateur", "trafic_payant"), array("display", "display", "trafic_payant"), array("email-auchanfr", "email_auchanfr", "email_auchanfr") ); $begin = 41; $end = 50; for ($i = $begin; $i <= $end; ++$i){ $index = rand(0,2); $query = "UPDATE IGNORE piwik_log_visit SET lever3='" . $levers[$index][0] . "', lever2='" . $levers[$index][1] . "', lever1='" . $levers[$index][2] . "' WHERE idvisit=" . $i . ";"; echo $query . "\n"; } //print_r($levers[rand(0,2)]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 5
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 5
Branch analysis from position: 30
Branch analysis from position: 5
filename:       /in/a9D85
function name:  (null)
number of ops:  31
compiled vars:  !0 = $levers, !1 = $begin, !2 = $end, !3 = $i, !4 = $index, !5 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 41
    7     2        ASSIGN                                                   !2, 50
    8     3        ASSIGN                                                   !3, !1
          4      > JMP                                                      ->28
    9     5    >   INIT_FCALL                                               'rand'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !4, $10
   10    10        FETCH_DIM_R                                      ~12     !0, !4
         11        FETCH_DIM_R                                      ~13     ~12, 0
         12        CONCAT                                           ~14     'UPDATE+IGNORE+piwik_log_visit+SET+lever3%3D%27', ~13
         13        CONCAT                                           ~15     ~14, '%27%2C+lever2%3D%27'
         14        FETCH_DIM_R                                      ~16     !0, !4
         15        FETCH_DIM_R                                      ~17     ~16, 1
         16        CONCAT                                           ~18     ~15, ~17
         17        CONCAT                                           ~19     ~18, '%27%2C+lever1%3D%27'
         18        FETCH_DIM_R                                      ~20     !0, !4
         19        FETCH_DIM_R                                      ~21     ~20, 2
         20        CONCAT                                           ~22     ~19, ~21
         21        CONCAT                                           ~23     ~22, '%27+WHERE+idvisit%3D'
         22        CONCAT                                           ~24     ~23, !3
         23        CONCAT                                           ~25     ~24, '%3B'
         24        ASSIGN                                                   !5, ~25
   11    25        CONCAT                                           ~27     !5, '%0A'
         26        ECHO                                                     ~27
    8    27        PRE_INC                                                  !3
         28    >   IS_SMALLER_OR_EQUAL                                      !3, !2
         29      > JMPNZ                                                    ~29, ->5
   15    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1396 KiB | 15 Q