3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=[1,2,3,4,5]; $b=[2016, 2017, 2018, 2019, 2020]; $keys = range("A", chr(64+count($a))); $c = array_values(array_merge_recursive(array_combine($keys,$a),array_combine($keys,$b))); Var_dump($c);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(2) { [0]=> int(1) [1]=> int(2016) } [1]=> array(2) { [0]=> int(2) [1]=> int(2017) } [2]=> array(2) { [0]=> int(3) [1]=> int(2018) } [3]=> array(2) { [0]=> int(4) [1]=> int(2019) } [4]=> array(2) { [0]=> int(5) [1]=> int(2020) } }

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:
158.14 ms | 406 KiB | 5 Q