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'); $arrayname[indexname] = $new_lang_array; print_r($arrayname[indexname]); echo '----'; ?>
based on MVTn1
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/rD9Yo on line 25 Warning: Use of undefined constant indexname - assumed 'indexname' (this will throw an Error in a future version of PHP) in /in/rD9Yo on line 27 4----
Output for 5.3.22 - 7.1.10
Notice: Use of undefined constant indexname - assumed 'indexname' in /in/rD9Yo on line 25 Notice: Use of undefined constant indexname - assumed 'indexname' in /in/rD9Yo on line 27 4----