3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = [ "uid", "number", "date", "title", "docFlag", "docTitle", ]; $workArray[0] = "\"20180125_0364\",\"363\",\"25.01.2018\",\"Some long text here\",false,\"\""; $workArray[1] = "\"20180125_0363\",\"364\",\"25.01.2018\",\"Some long text here\",true,\"Some short text here\""; $workArray[2] = "\"20180125_0358\",\"365\",\"25.01.2018\",\"Some long text here\",true,\"Some short text here\""; foreach ($workArray as &$el) { // $el = explode("") $values = str_getcsv($el); $el = array_combine($keys, $values); } var_dump($workArray);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> array(6) { ["uid"]=> string(13) "20180125_0364" ["number"]=> string(3) "363" ["date"]=> string(10) "25.01.2018" ["title"]=> string(19) "Some long text here" ["docFlag"]=> string(5) "false" ["docTitle"]=> string(0) "" } [1]=> array(6) { ["uid"]=> string(13) "20180125_0363" ["number"]=> string(3) "364" ["date"]=> string(10) "25.01.2018" ["title"]=> string(19) "Some long text here" ["docFlag"]=> string(4) "true" ["docTitle"]=> string(20) "Some short text here" } [2]=> &array(6) { ["uid"]=> string(13) "20180125_0358" ["number"]=> string(3) "365" ["date"]=> string(10) "25.01.2018" ["title"]=> string(19) "Some long text here" ["docFlag"]=> string(4) "true" ["docTitle"]=> string(20) "Some short text here" } }

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:
184.52 ms | 408 KiB | 5 Q