3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "hhvm.static_file.files_match[0][pattern] = *.(dll | exe) hhvm.static_file.files_match[0][headers][] = Content-Disposition: attachment hhvm.static_file.files_match[1][pattern] = *.(php) hhvm.static_file.files_match[1][headers][] = Content-Disposition: program"; var_dump(parse_ini_string($a, false, INI_SCANNER_RAW));
based on sgqod
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: syntax error, unexpected TC_SECTION, expecting '=' in Unknown on line 1 in /in/0Jngm on line 7 bool(false)
Output for hhvm-3.10.0 - 3.12.0
array(1) { ["hhvm.static_file.files_match"]=> array(2) { [0]=> array(2) { ["pattern"]=> string(13) "*.(dll | exe)" ["headers"]=> array(1) { [""]=> string(31) "Content-Disposition: attachment" } } [1]=> array(2) { ["pattern"]=> string(7) "*.(php)" ["headers"]=> array(1) { [""]=> string(28) "Content-Disposition: program" } } } }
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function parse_ini_string() in /in/0Jngm on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: parse_ini_string() in /in/0Jngm on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: parse_ini_string() in /in/0Jngm on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: parse_ini_string() in /in/0Jngm on line 7