3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'test'; $data = array(); $data[] = <<<INI [userdata] username=user1 age=15 level=5 INI; $data[] = <<<INI [userdata] username=user2 age=19 level=12 INI; foreach($data as $str) { $result = parse_ini_string($str, true, INI_SCANNER_NORMAL); print_r($result); }
Output for 5.3.0 - 7.3.0beta1
testArray ( [userdata] => Array ( [username] => user1 [age] => 15 [level] => 5 ) ) Array ( [userdata] => Array ( [username] => user2 [age] => 19 [level] => 12 ) )
Output for 5.0.0 - 5.1.1, 5.1.3 - 5.2.17
test Fatal error: Call to undefined function parse_ini_string() in /in/8XUGp on line 24
Process exited with code 255.
Output for 5.1.2
test Fatal error: Call to undefined function parse_ini_string() in /in/8XUGp on line 26
Process exited with code 255.
Output for 4.4.5 - 4.4.9
test Fatal error: Call to undefined function: parse_ini_string() in /in/8XUGp on line 24
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
test Fatal error: Call to undefined function: parse_ini_string() in /in/8XUGp on line 24
Process exited with code 255.
Output for 4.4.2
test Fatal error: Call to undefined function: parse_ini_string() in /in/8XUGp on line 26
Process exited with code 255.
Output for 4.3.0 - 4.3.1
test Fatal error: Call to undefined function: parse_ini_string() in /in/8XUGp on line 24