3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = Array ( Array ( (photo_id) => 46795 ), Array ( (photo_id) => 45112 ), Array ( (photo_id) => 46763 ), Array ( (photo_id) => 46593 ) ); echo implode(', ', array_map(function ($entry) { return $entry['tag_name']; }, $input));
based on ltBZ0
Output for 7.2.0
Warning: Use of undefined constant photo_id - assumed 'photo_id' (this will throw an Error in a future version of PHP) in /in/2P19b on line 6 Warning: Use of undefined constant photo_id - assumed 'photo_id' (this will throw an Error in a future version of PHP) in /in/2P19b on line 11 Warning: Use of undefined constant photo_id - assumed 'photo_id' (this will throw an Error in a future version of PHP) in /in/2P19b on line 16 Warning: Use of undefined constant photo_id - assumed 'photo_id' (this will throw an Error in a future version of PHP) in /in/2P19b on line 21 Notice: Undefined index: tag_name in /in/2P19b on line 27 Notice: Undefined index: tag_name in /in/2P19b on line 27 Notice: Undefined index: tag_name in /in/2P19b on line 27 Notice: Undefined index: tag_name in /in/2P19b on line 27 , , ,
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant photo_id - assumed 'photo_id' in /in/2P19b on line 6 Notice: Use of undefined constant photo_id - assumed 'photo_id' in /in/2P19b on line 11 Notice: Use of undefined constant photo_id - assumed 'photo_id' in /in/2P19b on line 16 Notice: Use of undefined constant photo_id - assumed 'photo_id' in /in/2P19b on line 21 Notice: Undefined index: tag_name in /in/2P19b on line 27 Notice: Undefined index: tag_name in /in/2P19b on line 27 Notice: Undefined index: tag_name in /in/2P19b on line 27 Notice: Undefined index: tag_name in /in/2P19b on line 27 , , ,