3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php $url = "http://mysite.com/browse/department/?pid=1&order_by=a_z&filter=1"; print_r(parse_url($url)); print_r(explode("/",parse_url($url, PHP_URL_PATH)));
Output for 5.1.2 - 5.6.0, php7@20140507 - 20140901, hhvm-3.0.1 - 3.2.0
Array ( [scheme] => http [host] => mysite.com [path] => /browse/department/ [query] => pid=1&order_by=a_z&filter=1 ) Array ( [0] => [1] => browse [2] => department [3] => )
Output for 4.3.0 - 5.1.1
Array ( [scheme] => http [host] => mysite.com [path] => /browse/department/ [query] => pid=1&order_by=a_z&filter=1 ) Notice: Use of undefined constant PHP_URL_PATH - assumed 'PHP_URL_PATH' in /in/6ssAI on line 4 Warning: parse_url() expects exactly 1 parameter, 2 given in /in/6ssAI on line 4 Array ( [0] => )