3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = <<<EOD [app\decibel\database\DDatabase] default="app\decibel\database\mysql\DMySQL" [app\decibel\database\mysql\DMySQL] ; DMySQL supports the DMySQLiAdapter and DPdoAdapter adapter="app\decibel\database\adapter\DMySQLiAdapter" ; DEnum with values retrieved from PDO::getAvailableDrivers() ; driver="mysql" -- required when using the DPdoAdapter adapter ; driver=PDO_MYSQL is also valid host="env:DB_HOSTNAME,localhost" database="env:DB_DATABASE,decibel" username="env:DB_USERNAME,root" password="env:DB_PASSWORD" EOD; var_dump($str); // $ini = parse_ini_string($str);
based on E9kqf
Output for 5.3.23 - 7.3.0beta1
string(506) "[app\decibel\database\DDatabase] default="app\decibel\database\mysql\DMySQL" [app\decibel\database\mysql\DMySQL] ; DMySQL supports the DMySQLiAdapter and DPdoAdapter adapter="app\decibel\database\adapter\DMySQLiAdapter" ; DEnum with values retrieved from PDO::getAvailableDrivers() ; driver="mysql" -- required when using the DPdoAdapter adapter ; driver=PDO_MYSQL is also valid host="env:DB_HOSTNAME,localhost" database="env:DB_DATABASE,decibel" username="env:DB_USERNAME,root" password="env:DB_PASSWORD""