3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url1 = Uri\WhatWg\Url::parse("https://example.com"); $url2 = $url1->withPort(-1); var_dump($url2);
Output for git.master, git.master_jit
object(Uri\WhatWg\Url)#2 (8) { ["scheme"]=> string(5) "https" ["username"]=> NULL ["password"]=> NULL ["host"]=> string(11) "example.com" ["port"]=> NULL ["path"]=> string(1) "/" ["query"]=> NULL ["fragment"]=> NULL }

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:
57.44 ms | 587 KiB | 4 Q