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";
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Illegal string offset 'default' in /in/bYZFR on line 3 'm'
Output for hhvm-3.10.0 - 3.12.0
'm'1
Output for 4.3.0 - 5.3.29
'm'