3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values_data = array(1,2,3,4,5,6,7,8,9); $i = "test"; $questions .=' <div class="radio"> '; foreach($values_data as $ke=>$va) { $questions.=' <div><input '.$tooltip.' type="radio" id="question_'.$i.'_'.$va['value'].'" value="'.$va['value'].'" name="question_'.$i.'" /> <span class="inline">'.$va['value'].'</span></div> '; } $questions .=' </div> <div class="clear"></div> '; echo $questions;
Output for 8.3.0 - 8.3.6
Warning: Undefined variable $questions in /in/M89l0 on line 5 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 12 Warning: Trying to access array offset on int in /in/M89l0 on line 13 <div class="radio"> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> </div> <div class="clear"></div>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: Undefined variable $questions in /in/M89l0 on line 5 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 Warning: Undefined variable $tooltip in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 12 Warning: Trying to access array offset on value of type int in /in/M89l0 on line 13 <div class="radio"> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> </div> <div class="clear"></div>
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: Undefined variable: questions in /in/M89l0 on line 5 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 12 Notice: Trying to access array offset on value of type int in /in/M89l0 on line 13 <div class="radio"> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> </div> <div class="clear"></div>
Output for 7.3.32 - 7.3.33, 7.4.26
<div class="radio"> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> </div> <div class="clear"></div>
Output for 5.0.4 - 5.0.5, 7.0.20, 7.1.5 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: Undefined variable: questions in /in/M89l0 on line 5 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 <div class="radio"> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> </div> <div class="clear"></div>
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.14, 7.1.0
Notice: Undefined variable: questions in /in/M89l0 on line 7 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 <div class="radio"> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> </div> <div class="clear"></div>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
Notice: Undefined variable: questions in /in/M89l0 on line 5 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 Notice: Undefined variable: tooltip in /in/M89l0 on line 12 <div class="radio"> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> <div><input type="radio" id="question_test_" value="" name="question_test" /> <span class="inline"></span></div> </div> <div class="clear"></div>

preferences:
330.52 ms | 406 KiB | 401 Q