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); ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
164.4 ms | 2056 KiB | 11 Q