3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url= 'http://localhost?' . "t=123455asdfgh&2384"; parse_str( parse_url( $url, PHP_URL_QUERY), $params); echo $params['t']; // Outputs 12
Output for 5.1.2 - 7.2.0
123455asdfgh
Output for 4.3.0 - 5.0.5, 5.1.1
Notice: Use of undefined constant PHP_URL_QUERY - assumed 'PHP_URL_QUERY' in /in/nJBKi on line 3 Warning: parse_url() expects exactly 1 parameter, 2 given in /in/nJBKi on line 3 Notice: Undefined index: t in /in/nJBKi on line 4
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/nJBKi on line 4
Process exited with code 255.