3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "'id_konversi_aktivitas' => 'f4d\'943e7', 'nim' => '180218038'"; preg_match_all("~'(.+?)' *=> *'(.+?)'(,|$)~",$string,$match); $array = array_combine($match[1],$match[2]); var_dump($array);
Output for rfc.property-hooks, git.master, git.master_jit
array(2) { ["id_konversi_aktivitas"]=> string(10) "f4d\'943e7" ["nim"]=> string(9) "180218038" }

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:
47.85 ms | 1300 KiB | 4 Q