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 4.3.0 - 5.0.5, 5.1.1 - 7.1.10
valuefoo barbazvaluefoo barbaz
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/R4cam on line 12
Process exited with code 255.