3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = ['item1','item2','item3','item4','item5','item6']; var_export( array_map(fn($row) => array_merge([999999], $row), array_chunk($list, 2)) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 999999, 1 => 'item1', 2 => 'item2', ), 1 => array ( 0 => 999999, 1 => 'item3', 2 => 'item4', ), 2 => array ( 0 => 999999, 1 => 'item5', 2 => 'item6', ), )

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