3v4l.org

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