3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tab[0] = array('body' => "test", 'bidou' => "test2"); $tab[1] = 'text'; $tab[2] = 'text'; print_r(current($tab)); print_r(arr);
based on 7NYPm
Output for 7.2.0 - 7.3.0beta1
Array ( [body] => test [bidou] => test2 ) Warning: Use of undefined constant arr - assumed 'arr' (this will throw an Error in a future version of PHP) in /in/FBPqQ on line 8 arr
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.20
Array ( [body] => test [bidou] => test2 ) Notice: Use of undefined constant arr - assumed 'arr' in /in/FBPqQ on line 8 arr