3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = array("he","llo"); foreach($d as $key -> $value){ echo $value; }
Output for 7.1.0
Notice: Undefined variable: value in /in/hnKAf on line 4 Warning: Creating default object from empty value in /in/hnKAf on line 4 Notice: Undefined variable: value in /in/hnKAf on line 5 Notice: Undefined variable: value in /in/hnKAf on line 4 Notice: Undefined variable: value in /in/hnKAf on line 5
Output for 7.0.0 - 7.0.14
Notice: Undefined variable: value in /in/hnKAf on line 4 Warning: Creating default object from empty value in /in/hnKAf on line 4 Fatal error: Uncaught Error: Cannot access empty property in /in/hnKAf:4 Stack trace: #0 {main} thrown in /in/hnKAf on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.25
Notice: Undefined variable: value in /in/hnKAf on line 4 Warning: Creating default object from empty value in /in/hnKAf on line 4 Fatal error: Cannot access empty property in /in/hnKAf on line 4
Process exited with code 255.
Output for 5.1.0 - 5.3.29
Notice: Undefined variable: value in /in/hnKAf on line 4 Strict Standards: Creating default object from empty value in /in/hnKAf on line 4 Fatal error: Cannot access empty property in /in/hnKAf on line 4
Process exited with code 255.
Output for 5.0.5
Notice: Undefined variable: value in /in/hnKAf on line 4 Fatal error: Cannot access empty property in /in/hnKAf on line 4
Process exited with code 255.
Output for 5.0.4
Notice: Undefined variable: value in /in/hnKAf on line 4 Notice: Undefined variable: value in /in/hnKAf on line 5 Notice: Undefined variable: value in /in/hnKAf on line 4 Notice: Undefined variable: value in /in/hnKAf on line 5
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: value in /in/hnKAf on line 4 Notice: Undefined variable: value in /in/hnKAf on line 5 Notice: Undefined variable: value in /in/hnKAf on line 4 Notice: Undefined variable: value in /in/hnKAf on line 5