3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(parse_url('redis://localhost/queue')); var_dump(parse_url('redis://user:password@localhost/queue')); var_dump(parse_url('redis://:password@localhost/queue')); var_dump(parse_url('redis://user:@localhost/queue')); var_dump(parse_url('redis://@localhost/queue')); var_dump(parse_url('redis://:@localhost/queue'));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["scheme"]=> string(5) "redis" ["host"]=> string(9) "localhost" ["path"]=> string(6) "/queue" } array(5) { ["scheme"]=> string(5) "redis" ["host"]=> string(9) "localhost" ["user"]=> string(4) "user" ["pass"]=> string(8) "password" ["path"]=> string(6) "/queue" } array(5) { ["scheme"]=> string(5) "redis" ["host"]=> string(9) "localhost" ["user"]=> string(0) "" ["pass"]=> string(8) "password" ["path"]=> string(6) "/queue" } array(5) { ["scheme"]=> string(5) "redis" ["host"]=> string(9) "localhost" ["user"]=> string(4) "user" ["pass"]=> string(0) "" ["path"]=> string(6) "/queue" } array(4) { ["scheme"]=> string(5) "redis" ["host"]=> string(9) "localhost" ["user"]=> string(0) "" ["path"]=> string(6) "/queue" } array(5) { ["scheme"]=> string(5) "redis" ["host"]=> string(9) "localhost" ["user"]=> string(0) "" ["pass"]=> string(0) "" ["path"]=> string(6) "/queue" }

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:
99.74 ms | 408 KiB | 5 Q