3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function addFunction($arg) { parse_str($arg, $var); foreach ($var as $key => $val) { echo $key , " --> " , $val, "\n"; } } addFunction('variable1=value1&variable2=value2');
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0RC5
variable1 --> value1 variable2 --> value2