3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = array(); $url = array('dog', 'cat', 'fish'); array_walk($url, function(&$value, &$key) { $temp[$value] = array($value, array(9,9)); }); echo '<pre>'; //echo json_encode($url, true); print_r($temp); echo '</pre>';
Output for git.master, git.master_jit, rfc.property-hooks
Warning: {closure}(): Argument #2 ($key) must be passed by reference, value given in /in/nUIFI on line 6 Warning: {closure}(): Argument #2 ($key) must be passed by reference, value given in /in/nUIFI on line 6 Warning: {closure}(): Argument #2 ($key) must be passed by reference, value given in /in/nUIFI on line 6 <pre>Array ( ) </pre>

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:
31.59 ms | 402 KiB | 8 Q