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);
based on PiFjS
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
'mysqli://USER:PASSWORD@localhost/some_database'
Output for hhvm-3.10.0 - 3.12.0
'mysqli://USER:PASSWORD@localhost/some_database'1