3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $campaign_data = '183921978.1445242386.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'; parse_str(strtr($campaign_data, "|", "&")); var_dump($campaign_data, $utmcsr, $utmccn, $utmcmd,$utmctr , $utmcct);
Output for 7.2.0
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/fZqZ3 on line 3 Notice: Undefined variable: utmcsr in /in/fZqZ3 on line 5 Notice: Undefined variable: utmctr in /in/fZqZ3 on line 5 Notice: Undefined variable: utmcct in /in/fZqZ3 on line 5 string(70) "183921978.1445242386.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)" NULL string(8) "(direct)" string(6) "(none)" NULL NULL
Output for 5.3.19 - 7.1.10
Notice: Undefined variable: utmcsr in /in/fZqZ3 on line 5 Notice: Undefined variable: utmctr in /in/fZqZ3 on line 5 Notice: Undefined variable: utmcct in /in/fZqZ3 on line 5 string(70) "183921978.1445242386.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)" NULL string(8) "(direct)" string(6) "(none)" NULL NULL