3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2,3,4); foreach($a as $values) echo $values."".$values2."".$values3."\n";
Output for 5.0.4 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 1 Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 2 Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 3 Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 4
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 1 Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 2 Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 3 Notice: Undefined variable: values2 in /in/aNmJn on line 7 Notice: Undefined variable: values3 in /in/aNmJn on line 7 4