3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_POST['class']=array('11SJP','11a_Ma1','11b_Sc2'); $user=3; foreach($_POST['class'] as $class_name){$values=$values."('".$class_name."',".$user."),";} $values=substr($values,0,-1); echo $values;
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: values in /in/iBmr0 on line 4 ('11SJP',3),('11a_Ma1',3),('11b_Sc2',3)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: values in /in/iBmr0 on line 4 ('11SJP',3),('11a_Ma1',3),('11b_Sc2',3)