3v4l.org

run code in 300+ PHP versions simultaneously
<?php $toto = array( array('toto' => 'alpha', 'aliou' => 'mari' ), array( 'toto' =>'amadou', 'aliou' => 'dje' ) ); function implode_array_values($key,$input) { return implode(', ', array_map(function($entry) use ($key) { return $entry[$key]; }, $input)); } var_dump(implode_array_values('toto',$toto)); echo array_map("count", $input);
Output for git.master_jit, git.master, rfc.property-hooks
string(13) "alpha, amadou" Warning: Undefined variable $input in /in/RQq3n on line 21 Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /in/RQq3n:21 Stack trace: #0 /in/RQq3n(21): array_map('count', NULL) #1 {main} thrown in /in/RQq3n on line 21
Process exited with code 255.

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:
78.44 ms | 401 KiB | 8 Q