3v4l.org

run code in 300+ PHP versions simultaneously
<?php $demos_keys = array("lastname","email","d1","d2"); $csvdata = array("Dryer,fdryer@email.com,Backfield,North\r","Harris,fharris@email.com,Corp,South\r"); $result = array(); foreach ($csvdata as $row) { $data = explode(',', trim($row)); $result[] = array_combine($demos_keys, $data); } print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [lastname] => Dryer [email] => fdryer@email.com [d1] => Backfield [d2] => North ) [1] => Array ( [lastname] => Harris [email] => fharris@email.com [d1] => Corp [d2] => South ) )

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