3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = 'hello world'; foreach(explode(' ', $array) as $key => $val){ echo "$key : $value <br />\n"; }
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: value in /in/0saq0 on line 6 0 : <br /> Notice: Undefined variable: value in /in/0saq0 on line 6 1 : <br />
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: value in /in/0saq0 on line 6 0 : <br /> Notice: Undefined variable: value in /in/0saq0 on line 6 1 : <br />