3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Merge the profile data. $data->teburu3 = array(); foreach ($results as $v) { $k = str_replace('teburu3.', '', $v[0]); $data->teburu3[$k] = json_decode($v[1], true); }
Output for 5.4.0 - 7.2.0
Warning: Creating default object from empty value in /in/dIcjA on line 3 Notice: Undefined variable: results in /in/dIcjA on line 4 Warning: Invalid argument supplied for foreach() in /in/dIcjA on line 4
Output for 5.1.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/dIcjA on line 3 Notice: Undefined variable: results in /in/dIcjA on line 4 Warning: Invalid argument supplied for foreach() in /in/dIcjA on line 4
Output for 5.0.0 - 5.0.5
Strict Standards: Creating default object from empty value in /in/dIcjA on line 3 Warning: Invalid argument supplied for foreach() in /in/dIcjA on line 4
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Warning: Invalid argument supplied for foreach() in /in/dIcjA on line 4
Output for 4.3.11