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 = 3; 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)]);

preferences:
35.97 ms | 402 KiB | 5 Q