3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(alarm => '5', topeni => '11', rezerva => '3', cidlo => '9'); $key = array_search('5', $array); // $key = 2; echo $key; ?>
based on fpCqC
Output for 7.2.0
Warning: Use of undefined constant alarm - assumed 'alarm' (this will throw an Error in a future version of PHP) in /in/Vv1tP on line 2 Warning: Use of undefined constant topeni - assumed 'topeni' (this will throw an Error in a future version of PHP) in /in/Vv1tP on line 2 Warning: Use of undefined constant rezerva - assumed 'rezerva' (this will throw an Error in a future version of PHP) in /in/Vv1tP on line 2 Warning: Use of undefined constant cidlo - assumed 'cidlo' (this will throw an Error in a future version of PHP) in /in/Vv1tP on line 2 alarm
Output for 5.3.19 - 7.1.10
Notice: Use of undefined constant alarm - assumed 'alarm' in /in/Vv1tP on line 2 Notice: Use of undefined constant topeni - assumed 'topeni' in /in/Vv1tP on line 2 Notice: Use of undefined constant rezerva - assumed 'rezerva' in /in/Vv1tP on line 2 Notice: Use of undefined constant cidlo - assumed 'cidlo' in /in/Vv1tP on line 2 alarm