3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrVal = array ( '22' => array( '0' => 60, '29' => array( '0' => 6 ), '30' => array ( '0' => 5, '1' => 8 ), '31' => array ( '0' => 7, '1' => 9, '2' => 14, '3' => 26 ) ), '23' => 12, '35' => 10, '42' => 22 ); $arrVal = array_map(function($el){ return $el['tag_id']; }, $arrVal); echo $str = implode(',', $arrVal);
Output for git.master, git.master_jit
Warning: Undefined array key "tag_id" in /in/a4CuK on line 23 Warning: Trying to access array offset on value of type int in /in/a4CuK on line 23 Warning: Trying to access array offset on value of type int in /in/a4CuK on line 23 Warning: Trying to access array offset on value of type int in /in/a4CuK on line 23 ,,,
Output for rfc.property-hooks
Warning: Undefined array key "tag_id" in /in/a4CuK on line 23 Warning: Trying to access array offset on int in /in/a4CuK on line 23 Warning: Trying to access array offset on int in /in/a4CuK on line 23 Warning: Trying to access array offset on int in /in/a4CuK on line 23 ,,,

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.52 ms | 401 KiB | 8 Q