3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array=[ '2 16 10 4 0 0 0 0 0', '0 0 0 4', '2 15 8 6 0 0 0 0 0', '0 0 0 3', '3 18 12 5 0 0 0 0 0', '0 0 0 2' ]; $prepped_copy=preg_replace('/\s+/',' ',$array); while($prepped_copy){ $result[]=implode(' ',array_splice($prepped_copy,0,2)); } var_export($result);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '2 16 10 4 0 0 0 0 0 0 0 0 4', 1 => '2 15 8 6 0 0 0 0 0 0 0 0 3', 2 => '3 18 12 5 0 0 0 0 0 0 0 0 2', )

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:
46.81 ms | 1623 KiB | 4 Q