3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newadd = Array( '0' => 'deutsch', ); $cart = Array( '0' => 'englisch', '1' => 'italienisch', '2' => 'russisch' ); $poddata[] = 'deutsch'; print_r($poddata); echo '----'; $cart[] = 13; $cart[] = "foo"; $cart[] = obj; print_r($cart); ?>
based on 0qlpb
Output for 7.2.0
Array ( [0] => deutsch ) ---- Warning: Use of undefined constant obj - assumed 'obj' (this will throw an Error in a future version of PHP) in /in/s7oq0 on line 35 Array ( [0] => englisch [1] => italienisch [2] => russisch [3] => 13 [4] => foo [5] => obj )
Output for 5.3.22 - 7.1.10
Array ( [0] => deutsch ) ---- Notice: Use of undefined constant obj - assumed 'obj' in /in/s7oq0 on line 35 Array ( [0] => englisch [1] => italienisch [2] => russisch [3] => 13 [4] => foo [5] => obj )