3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_string = 'Array ( [0] => 2018-08-21 10:00:00 [1] => 2018-08-28 10:00:00 [2] => 2018-09-04 10:00:00 [3] => 2018-09-11 10:00:00 [4] => 2018-09-18 10:00:00 )'; $array_string = preg_replace('/\[(\d+)\] => (.*?)(?=\s+[[)])/s', "'$1' => '$2',", $array_string); eval("\$array1 = $array_string;"); var_dump($array1);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(19) "2018-08-21 10:00:00" [1]=> string(19) "2018-08-28 10:00:00" [2]=> string(19) "2018-09-04 10:00:00" [3]=> string(19) "2018-09-11 10:00:00" [4]=> string(19) "2018-09-18 10:00:00" }

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:
33.52 ms | 401 KiB | 8 Q