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]."<br />"; // foo bar echo $arr[1]."<br />"; // baz parse_str($str, $output); echo $output['first']; // value echo $output['arr'][0]."<br />"; // foo bar echo $output['arr'][1]."<br />"; // baz
Output for 7.2.0 - 7.2.6
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/cbPHZ on line 4 valuefoo bar<br />baz<br />valuefoo bar<br />baz<br />
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.20
valuefoo bar<br />baz<br />valuefoo bar<br />baz<br />
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/cbPHZ on line 12
Process exited with code 255.