3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
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.