3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "Hai FIELDMERGE_nickname, Your city is FIELDMERGE_city and your gender is FIELDMERGE_gender. webinar title is FIELDMERGE_extraparam1 Again your name is FIELDMERGE_nickname"; $arr = explode("FIELDMERGE_", $data); array_shift($arr); foreach($arr as $e) { $a = explode(" ", $e); $res[] = preg_replace('/[^a-z\d]/i', '', array_shift($a)); //$res[] = trim(array_shift($a)); } print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => nickname [1] => city [2] => gender [3] => extraparam1 [4] => nickname )

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:
172.22 ms | 405 KiB | 5 Q