3v4l.org

run code in 300+ PHP versions simultaneously
<?php $people = ["moe", "larry", "curly"]; $ages = [30, 32, 50]; /* Passing Null as callback is the same as using * function() { return func_get_args(); } */ var_export(array_map(null, $people, $ages));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 'moe', 1 => 30, ), 1 => array ( 0 => 'larry', 1 => 32, ), 2 => array ( 0 => 'curly', 1 => 50, ), )

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