3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newadd = Array( '0' => 'deutsch', ); $poddata = Array( '0' => 'englisch', '1' => 'italienisch', '2' => 'russisch' ); $new_lang_array = array_push($poddata, 'deutsch'); $poddata[indexname] = 'deutsch'; print_r($arrayname[indexname]); echo '----'; ?>
based on rD9Yo
Output for 7.2.0
Warning: Use of undefined constant indexname - assumed 'indexname' (this will throw an Error in a future version of PHP) in /in/uSR8G on line 25 Warning: Use of undefined constant indexname - assumed 'indexname' (this will throw an Error in a future version of PHP) in /in/uSR8G on line 27 Notice: Undefined variable: arrayname in /in/uSR8G on line 27 ----
Output for 5.3.22 - 7.1.10
Notice: Use of undefined constant indexname - assumed 'indexname' in /in/uSR8G on line 25 Notice: Use of undefined constant indexname - assumed 'indexname' in /in/uSR8G on line 27 Notice: Undefined variable: arrayname in /in/uSR8G on line 27 ----