3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $db_url = "mysqli://USER:PASSWORD@localhost/some_database"; $db_conn = !is_array($db_url) ? $db_url : (isset($db_url["default"]) ? $db_url["default"] : NULL); echo var_export($db_conn) . "\n";
based on tEeO6
Output for 4.3.0 - 7.1.0
'mysqli://USER:PASSWORD@localhost/some_database'