3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = " [group] var=123 var2[] var2[]=a var2[]=b var3[1]=test1 var3[2]=test2;test3 [group2] "; var_dump($s); $r = parse_ini_string( $s , true, INI_SCANNER_RAW); var_dump($r);
Output for 5.3.0 - 7.1.0
string(87) " [group] var=123 var2[] var2[]=a var2[]=b var3[1]=test1 var3[2]=test2;test3 [group2] " Warning: syntax error, unexpected END_OF_LINE, expecting '=' in Unknown on line 5 in /in/3JjEm on line 16 bool(false)
Output for 5.0.0 - 5.2.17
string(87) " [group] var=123 var2[] var2[]=a var2[]=b var3[1]=test1 var3[2]=test2;test3 [group2] " Fatal error: Call to undefined function parse_ini_string() in /in/3JjEm on line 16
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(87) " [group] var=123 var2[] var2[]=a var2[]=b var3[1]=test1 var3[2]=test2;test3 [group2] " Fatal error: Call to undefined function: parse_ini_string() in /in/3JjEm on line 16
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(87) " [group] var=123 var2[] var2[]=a var2[]=b var3[1]=test1 var3[2]=test2;test3 [group2] " Fatal error: Call to undefined function: parse_ini_string() in /in/3JjEm on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(87) " [group] var=123 var2[] var2[]=a var2[]=b var3[1]=test1 var3[2]=test2;test3 [group2] " Fatal error: Call to undefined function: parse_ini_string() in /in/3JjEm on line 16