3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 0 => [ "record_id" => 3, "task_date" => "2018-10-02" ], 1 => [ "record_id" => 5, "task_date" => "2018-10-02" ], 2 => [ "record_id" => 1, "task_date" => "2018-09-27", ] ]; $out = []; foreach($data as $task) { $out["task_date"][] = $task; } var_dump(array_values($out)) ;
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(3) { [0]=> array(2) { ["record_id"]=> int(3) ["task_date"]=> string(10) "2018-10-02" } [1]=> array(2) { ["record_id"]=> int(5) ["task_date"]=> string(10) "2018-10-02" } [2]=> array(2) { ["record_id"]=> int(1) ["task_date"]=> string(10) "2018-09-27" } } }

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:
53.79 ms | 402 KiB | 8 Q