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 = 30; $end = 40; 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 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 5
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 5
Branch analysis from position: 29
Branch analysis from position: 5
filename:       /in/68s0o
function name:  (null)
number of ops:  30
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, 30
    7     2        ASSIGN                                                   !2, 40
    8     3        ASSIGN                                                   !3, !1
          4      > JMP                                                      ->27
    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        ASSIGN                                                   !5, ~24
   11    24        CONCAT                                           ~26     !5, '%0A'
         25        ECHO                                                     ~26
    8    26        PRE_INC                                                  !3
         27    >   IS_SMALLER_OR_EQUAL                                      !3, !2
         28      > JMPNZ                                                    ~28, ->5
   15    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.72 ms | 1388 KiB | 15 Q