3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dsn = (object) parse_url('mysql://root@localhost/wp_sage'); var_dump($dsn); echo $dsn->pass;
Output for 7.1.25 - 7.3.2
object(stdClass)#1 (4) { ["scheme"]=> string(5) "mysql" ["host"]=> string(9) "localhost" ["user"]=> string(4) "root" ["path"]=> string(8) "/wp_sage" } Notice: Undefined property: stdClass::$pass in /in/Yf3ck on line 6