3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cod_conferencia[1] = array(5 => 5, 6 => 6,7 => 7, 11 => 11, 12 => 12, 13 => 13, 15 => 15); $cod_conferencia[2] = array(5 => 5, 8 => 8,9 => 9, 11 => 11, 12 => 12, 14 => 14, 15 => 15); $cod_conferencia[3] = array(6 => 6, 8 => 8,10 => 10, 11 => 11, 13 => 13, 14 => 14, 15 => 15); $cod_conferencia[4] = array(7 => 7, 9 => 9,10 => 10, 12 => 12, 13 => 13, 14 => 14, 15 => 15); $cod_conferencia[5] = $cod_conferencia[1] + $cod_conferencia[2]; $cod_conferencia[6] = $cod_conferencia[1] + $cod_conferencia[3]; $cod_conferencia[7] = $cod_conferencia[1] + $cod_conferencia[4]; $cod_conferencia[8] = $cod_conferencia[2] + $cod_conferencia[3]; $cod_conferencia[9] = $cod_conferencia[2] + $cod_conferencia[4]; $cod_conferencia[10] = $cod_conferencia[3] + $cod_conferencia[4]; $cod_conferencia[11] = $cod_conferencia[1] + $cod_conferencia[2] + $cod_conferencia[3]; $cod_conferencia[12] = $cod_conferencia[1] + $cod_conferencia[2] + $cod_conferencia[4]; $cod_conferencia[13] = $cod_conferencia[1] + $cod_conferencia[3] + $cod_conferencia[4]; $cod_conferencia[14] = $cod_conferencia[2] + $cod_conferencia[3] + $cod_conferencia[4]; $cod_conferencia[15] = $cod_conferencia[1] + $cod_conferencia[2] + $cod_conferencia[3] + $cod_conferencia[4]; echo"<br><pre>";var_dump($cod_conferencia);echo("</pre><br>");
Output for 4.3.0 - 7.1.0
<br><pre>array(15) { [1]=> array(7) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) } [2]=> array(7) { [5]=> int(5) [8]=> int(8) [9]=> int(9) [11]=> int(11) [12]=> int(12) [14]=> int(14) [15]=> int(15) } [3]=> array(7) { [6]=> int(6) [8]=> int(8) [10]=> int(10) [11]=> int(11) [13]=> int(13) [14]=> int(14) [15]=> int(15) } [4]=> array(7) { [7]=> int(7) [9]=> int(9) [10]=> int(10) [12]=> int(12) [13]=> int(13) [14]=> int(14) [15]=> int(15) } [5]=> array(10) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) [8]=> int(8) [9]=> int(9) [14]=> int(14) } [6]=> array(10) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) [8]=> int(8) [10]=> int(10) [14]=> int(14) } [7]=> array(10) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) [9]=> int(9) [10]=> int(10) [14]=> int(14) } [8]=> array(10) { [5]=> int(5) [8]=> int(8) [9]=> int(9) [11]=> int(11) [12]=> int(12) [14]=> int(14) [15]=> int(15) [6]=> int(6) [10]=> int(10) [13]=> int(13) } [9]=> array(10) { [5]=> int(5) [8]=> int(8) [9]=> int(9) [11]=> int(11) [12]=> int(12) [14]=> int(14) [15]=> int(15) [7]=> int(7) [10]=> int(10) [13]=> int(13) } [10]=> array(10) { [6]=> int(6) [8]=> int(8) [10]=> int(10) [11]=> int(11) [13]=> int(13) [14]=> int(14) [15]=> int(15) [7]=> int(7) [9]=> int(9) [12]=> int(12) } [11]=> array(11) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) [8]=> int(8) [9]=> int(9) [14]=> int(14) [10]=> int(10) } [12]=> array(11) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) [8]=> int(8) [9]=> int(9) [14]=> int(14) [10]=> int(10) } [13]=> array(11) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) [8]=> int(8) [10]=> int(10) [14]=> int(14) [9]=> int(9) } [14]=> array(11) { [5]=> int(5) [8]=> int(8) [9]=> int(9) [11]=> int(11) [12]=> int(12) [14]=> int(14) [15]=> int(15) [6]=> int(6) [10]=> int(10) [13]=> int(13) [7]=> int(7) } [15]=> array(11) { [5]=> int(5) [6]=> int(6) [7]=> int(7) [11]=> int(11) [12]=> int(12) [13]=> int(13) [15]=> int(15) [8]=> int(8) [9]=> int(9) [14]=> int(14) [10]=> int(10) } } </pre><br>