3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'dates' => ['2010-01-02', '2011-02-03', '2011-02-04'], 'type1' => ['data1', 'data2', 'data3'], 'type2' => ['data4', 'data5', 'data6'] ]; echo implode( "\n", array_merge( [implode(',', array_keys($data))], array_map( fn(...$col) => implode(',', $col), ...array_values($data) ) ) );
Output for git.master, git.master_jit, rfc.property-hooks
dates,type1,type2 2010-01-02,data1,data4 2011-02-03,data2,data5 2011-02-04,data3,data6

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:
71.93 ms | 405 KiB | 5 Q