3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp = [ 0 => ["date" => "2019-05-19 00:00:00", "price" => "120"], 1 => ["date" => "2019-05-12 00:00:00", "price" => "100"], 2 => ["date" => "2019-05-05 00:00:00", "price" => "120"], 3 => ["date" => "2019-04-28 00:00:00", "price" => "110"], ]; $temp = array_map(function ($item) {return array_combine(["x", "y"], $item); }, $temp); print_r($temp);die;
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [x] => 2019-05-19 00:00:00 [y] => 120 ) [1] => Array ( [x] => 2019-05-12 00:00:00 [y] => 100 ) [2] => Array ( [x] => 2019-05-05 00:00:00 [y] => 120 ) [3] => Array ( [x] => 2019-04-28 00:00:00 [y] => 110 ) )

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:
50.38 ms | 1780 KiB | 4 Q