3v4l.org

run code in 300+ PHP versions simultaneously
<?php $static = 90; $array = [ 'checklists' => [ 20, 50, 35, 23, 24, 21, 22, 27, 25 ] ]; $array['checklists'] = array_map(function($v) use($static) { return [$static, $v]; }, $array['checklists']); var_dump($array);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["checklists"]=> array(9) { [0]=> array(2) { [0]=> int(90) [1]=> int(20) } [1]=> array(2) { [0]=> int(90) [1]=> int(50) } [2]=> array(2) { [0]=> int(90) [1]=> int(35) } [3]=> array(2) { [0]=> int(90) [1]=> int(23) } [4]=> array(2) { [0]=> int(90) [1]=> int(24) } [5]=> array(2) { [0]=> int(90) [1]=> int(21) } [6]=> array(2) { [0]=> int(90) [1]=> int(22) } [7]=> array(2) { [0]=> int(90) [1]=> int(27) } [8]=> array(2) { [0]=> int(90) [1]=> int(25) } } }

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:
176.36 ms | 407 KiB | 5 Q