3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) ); $letters = array(); foreach ($input as $value['tag_name']) { $letters = array_merge($letters, $value); } echo implode(', ', $letters);
based on AXZK6

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Notice: Array to string conversion in /in/DOVSq on line 16 Array
Output for Arrow functions
Notice: Array to string conversion in /in/DOVSq on line 16 Array
Output for Object typehint
Notice: Array to string conversion in /in/DOVSq on line 16 Array
Output for Array change keys
Notice: Array to string conversion in /in/DOVSq on line 16 Array
Output for Lexical anon
Notice: Array to string conversion in /in/DOVSq on line 16 Array

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