3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $qs = "index.php?id=34&name=john"; print_r( sscanf($qs, "%[^?]?%[^?]") ); $qs = "id=34&name=john"; print_r( sscanf($qs, "id=%[^&]&name=%[^&]") );
Output for 4.3.0 - 7.1.0
Array ( [0] => index.php [1] => id=34&name=john ) Array ( [0] => 34 [1] => john )