3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'export NTPSERVER_1 NTPSERVER_2 NTPSERVER_3 PSLOGHOST LOGHOST RSSHHOST RHPORT NTPSERVER_1=8.8.8.8 NTPSERVER_2= NTPSERVER_3= LOGHOST="8.8.8.8" PSLOGHOST="" RSSHHOST="8.8.8.8" RHPORT=88888'; Preg_match_all("/(\w+)\=(.*)/", $str, $matches); Foreach($matches[1] as $key => $val){ $res[$val] = str_replace('"','',$matches[2][$key]); } Var_dump($res);
Output for git.master, git.master_jit, rfc.property-hooks
array(7) { ["NTPSERVER_1"]=> string(7) "8.8.8.8" ["NTPSERVER_2"]=> string(0) "" ["NTPSERVER_3"]=> string(0) "" ["LOGHOST"]=> string(7) "8.8.8.8" ["PSLOGHOST"]=> string(0) "" ["RSSHHOST"]=> string(7) "8.8.8.8" ["RHPORT"]=> string(5) "88888" }

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