3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Your code here! $arr = [ "txt_job_exp_start" => [ 0 => "2019-03", 1 => "2018-12", 2 => "2017-12" ], "txt_job_exp_end" => [ 0 => "2020-02", 1 => "2019-11", 2 => "2018-08" ], "txt_job_exp_desc" => [ 0 => "Description 1", 1 => "Description 2", 2 => "Description 3" ] ]; $arr2 = []; foreach($arr as $key => $val){ $arr2[] = $val; } var_dump($arr2); ?>
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(3) { [0]=> string(7) "2019-03" [1]=> string(7) "2018-12" [2]=> string(7) "2017-12" } [1]=> array(3) { [0]=> string(7) "2020-02" [1]=> string(7) "2019-11" [2]=> string(7) "2018-08" } [2]=> array(3) { [0]=> string(13) "Description 1" [1]=> string(13) "Description 2" [2]=> string(13) "Description 3" } }

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