3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s1 = 'frm_division=58'; $s2 = '?frm_division=58'; $s3 = 'frm_division=58&foo=test'; parse_str($s1, $d1); parse_str($s2, $d2); parse_str($s3, $d3); var_dump($d1, $d2, $d3);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(1) { ["frm_division"]=> string(2) "58" } array(1) { ["?frm_division"]=> string(2) "58" } array(2) { ["frm_division"]=> string(2) "58" ["foo"]=> string(4) "test" }