3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'https://www.amazon.com/clouddrive/share?s=FYtyU2jCSwwokLLQF2c7D0'; $q = parse_url($url, PHP_URL_QUERY); parse_str($q, $query); print_r($query);
based on KkvHU
Output for 5.1.2 - 7.2.0
Array ( [s] => FYtyU2jCSwwokLLQF2c7D0 )
Output for 4.3.0 - 5.1.1
Notice: Use of undefined constant PHP_URL_QUERY - assumed 'PHP_URL_QUERY' in /in/Nk9dl on line 4 Warning: parse_url() expects exactly 1 parameter, 2 given in /in/Nk9dl on line 4 Array ( )