3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = <<<EOF [group] var=123 var2[]= var2[]=true var2[]=yes var2[]=disabled var3[a]="test1\;test2" var3[b]=test3,test3,test5|test6 [group2] EOF; $r = parse_ini_string( $s , false, INI_SCANNER_RAW); var_dump($r);
Output for 5.3.15 - 5.3.29, 5.4.5 - 7.1.0
array(3) { ["var"]=> string(3) "123" ["var2"]=> array(4) { [0]=> string(0) "" [1]=> string(4) "true" [2]=> string(3) "yes" [3]=> string(8) "disabled" } ["var3"]=> array(2) { ["a"]=> string(12) "test1\;test2" ["b"]=> string(23) "test3,test3,test5|test6" } }
Output for 5.3.0 - 5.3.14, 5.4.0 - 5.4.4
array(3) { ["var"]=> string(3) "123" ["var2"]=> array(4) { [0]=> string(0) "" [1]=> string(4) "true" [2]=> string(3) "yes" [3]=> string(8) "disabled" } ["var3"]=> array(2) { ["a"]=> string(7) ""test1\" ["b"]=> string(23) "test3,test3,test5|test6" } }
Output for 5.0.0 - 5.1.1, 5.1.3 - 5.2.17
Fatal error: Call to undefined function parse_ini_string() in /in/KQJ6E on line 20
Process exited with code 255.
Output for 5.1.2
Fatal error: Call to undefined function parse_ini_string() in /in/KQJ6E on line 21
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: parse_ini_string() in /in/KQJ6E on line 20
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: parse_ini_string() in /in/KQJ6E on line 20
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: parse_ini_string() in /in/KQJ6E on line 21
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: parse_ini_string() in /in/KQJ6E on line 20