3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = ["\97\49\49\68\x4F\84\116\x68\97\x74\x44\x4F\x54\x6A\97\x76\x61\x35\x63\x72\97\x70\x41\84\x66\x6C\97\x72\x65\x44\65\x53\72\111\110\68\79\84\99\x6F\x6D"]; $arr2["\97\49\x31\68\x4F\x54\116\104\x61\116\x44\79\x54\106\97\118\97\53\x63\114\x61\x70\65\84\102\x6C\x61\114\101\x44\65\x53\72\111\x6E\x44\x4F\84\99\x6F\x6D"]; foreach ($arr as $val) { echo $val; } foreach ($arr2 as $val2) { echo $val2; } ?>
Output for 5.4.34 - 7.1.0
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97998O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH89\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.32
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.328O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.3288Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.31
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.318O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.3188Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.30
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.308O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.3088Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.29
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.298O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2988Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.28
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.288O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2888Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.27
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.278O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2788Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.26
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.268O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2688Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.25
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.258O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2588Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.24
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.248O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2488Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.23
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.238O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2388Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.22
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.228O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2288Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.21
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.218O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2188Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.20
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.208O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.2088Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.19
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.198O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1988Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.18
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.188O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1888Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.17
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.178O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1788Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.16
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.168O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1688Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.15
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.158O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1588Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.14
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.148O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1488Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.13
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.138O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1388Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.12
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.128O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1288Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.11
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.118O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1188Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.10
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.108O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.1088Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.9
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.98O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.988Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.8
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.88O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.888Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.7
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.78O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.788Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.6
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.68O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.688Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.5
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.58O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.588Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.4
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.48O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.488Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.3
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.38O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.388Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.2
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.28O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.288Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.1
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.18O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.188Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 5.4.0
Notice: Undefined variable: arr2 in /in/8Qugh on line 4 \97995.4.08O\84Nh\97tDOTj\97va5cr\97pA\84fl\97reD5S:IH5.4.088Qugh9\84\99om Notice: Undefined variable: arr2 in /in/8Qugh on line 9 Warning: Invalid argument supplied for foreach() in /in/8Qugh on line 9
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/8Qugh on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/8Qugh on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/8Qugh on line 3
Process exited with code 255.