3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "first=value&arr[]=foo+bar&arr[]=baz"; parse_str($str); echo $first; // value echo $arr[0]; // foo bar echo $arr[1]; // baz parse_str($str, $output); echo $output['first']; // value echo $output['arr'][0]; // foo bar echo $output['arr'][1]; // baz ?>
Output for 7.2.0 - 7.3.0beta1
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/J0WkY on line 3 valuefoo barbazvaluefoo barbaz
Output for 4.3.0 - 7.1.20
valuefoo barbazvaluefoo barbaz