3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $gets = array(); $string = "component/content/article?id=9&sid=15"; $parts = explode('?',$string); $parts = explode('&',$parts[1]); foreach($parts as $part){ $gets[$part[0]] = $part[1]; } print_r($gets);
Output for 4.3.0 - 7.1.7
Array ( [i] => d [s] => i )