3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://digitalservices.ukwm157/api/v3/packages.json?site_id=4&verbose=true&limit=1"; $parts = parse_url($url); var_dump($parts); var_dump(parse_str($parts['query']));
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(23) "digitalservices.ukwm157" ["path"]=> string(21) "/api/v3/packages.json" ["query"]=> string(30) "site_id=4&verbose=true&limit=1" } Fatal error: Uncaught ArgumentCountError: parse_str() expects exactly 2 arguments, 1 given in /in/ePcMU:7 Stack trace: #0 /in/ePcMU(7): parse_str('site_id=4&verbo...') #1 {main} thrown in /in/ePcMU on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.06 ms | 402 KiB | 8 Q