3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [i] => d [s] => i )