3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cod_videoconferencia[1] = array(1 => 1, 5 => 5, 6 => 6, 7 => 7, 11 => 11, 12 => 12, 13 => 13, 15 => 15); $cod_videoconferencia[2] = array(2 => 2, 5 => 5, 8 => 8, 9 => 9, 11 => 11, 12 => 12, 14 => 14, 15 => 15); $cod_videoconferencia[3] = array(3 => 3, 6 => 6, 8 => 8, 10 => 10, 11 => 11, 13 => 13, 14 => 14, 15 => 15); $cod_videoconferencia[4] = array(4 => 4, 7 => 7, 9 => 9, 10 => 10, 12 => 12, 13 => 13, 14 => 14, 15 => 15); $cod_videoconferencia[5] = $cod_videoconferencia[1] + $cod_videoconferencia[2]; $cod_videoconferencia[6] = $cod_videoconferencia[1] + $cod_videoconferencia[3]; $cod_videoconferencia[7] = $cod_videoconferencia[1] + $cod_videoconferencia[4]; $cod_videoconferencia[8] = $cod_videoconferencia[2] + $cod_videoconferencia[3]; $cod_videoconferencia[9] = $cod_videoconferencia[2] + $cod_videoconferencia[4]; $cod_videoconferencia[10] = $cod_videoconferencia[3] + $cod_videoconferencia[4]; $cod_videoconferencia[11] = $cod_videoconferencia[1] + $cod_videoconferencia[2] + $cod_videoconferencia[3]; $cod_videoconferencia[12] = $cod_videoconferencia[1] + $cod_videoconferencia[2] + $cod_videoconferencia[4]; $cod_videoconferencia[13] = $cod_videoconferencia[1] + $cod_videoconferencia[3] + $cod_videoconferencia[4]; $cod_videoconferencia[14] = $cod_videoconferencia[2] + $cod_videoconferencia[3] + $cod_videoconferencia[4]; $cod_videoconferencia[15] = $cod_videoconferencia[1] + $cod_videoconferencia[2] + $cod_videoconferencia[3] + $cod_videoconferencia[4]; foreach ($cod_videoconferencia as $key => $value) { $sql_videoconferencia .= " AND (".$key." NOT IN (".implode(",", $cod_videoconferencia[$key]).") OR RES.REC_COD = ".$key.")"; }
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: sql_videoconferencia in /in/Dgeja on line 23
Output for hhvm-3.12.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: sql_videoconferencia in /in/Dgeja on line 22
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: sql_videoconferencia in /in/Dgeja on line 22