3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = parse_ini_file('data://text/plain,[reply] 0 = "In progress (a normal message submission, with no error encountered so far)" 10 = "Delivered upstream" 11 = "Delivered to mobile"', true); var_dump($value); var_dump($value['reply'][11]); var_dump($value['reply']['11']);
Output for 5.3.0 - 7.1.0
Warning: parse_ini_file(): data:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/43o2N on line 6 Warning: parse_ini_file(data://text/plain,[reply] 0 = "In progress (a normal message submission, with no error encountered so far)" 10 = "Delivered upstream" 11 = "Delivered to mobile"): failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6 bool(false) NULL NULL
Output for 5.2.7 - 5.2.17
Warning: parse_ini_file(): URL file-access is disabled in the server configuration in /in/43o2N on line 6 Warning: parse_ini_file(data://text/plain,[reply] 0 = "In progress (a normal message submission, with no error encountered so far)" 10 = "Delivered upstream" 11 = "Delivered to mobile"): failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6 bool(false) NULL NULL
Output for 5.2.1 - 5.2.6
Warning: parse_ini_file(): URL file-access is disabled in the server configuration in /in/43o2N on line 6 Warning: parse_ini_file(data://text/plain,[reply] 0 = "In progress (a normal message submission, with no error encountered so far)" 10 = "Delivered upstream" 11 = "Delivered to mobile"): failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6 array(0) { } Notice: Undefined index: reply in /in/43o2N on line 9 NULL Notice: Undefined index: reply in /in/43o2N on line 10 NULL
Output for 5.2.0
array(1) { ["reply"]=> array(3) { [0]=> string(75) "In progress (a normal message submission, with no error encountered so far)" [10]=> string(18) "Delivered upstream" [11]=> string(19) "Delivered to mobile" } } string(19) "Delivered to mobile" string(19) "Delivered to mobile"
Output for 5.0.0 - 5.1.6
Notice: parse_ini_file(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/43o2N on line 6 Warning: parse_ini_file(data://text/plain,[reply] 0 = "In progress (a normal message submission, with no error encountered so far)" 10 = "Delivered upstream" 11 = "Delivered to mobile"): failed to open stream: No such file or directory in /in/43o2N on line 6 array(0) { } Notice: Undefined index: reply in /in/43o2N on line 9 NULL Notice: Undefined index: reply in /in/43o2N on line 10 NULL
Output for 4.3.2 - 4.4.9
Warning: parse_ini_file(): Cannot open 'data://text/plain,[reply] 0 = "In progress (a normal message submission, with no error encountered so far)" 10 = "Delivered upstream" 11 = "Delivered to mobile"' for reading in /in/43o2N on line 6 bool(false) NULL NULL
Output for 4.3.0 - 4.3.1
Warning: parse_ini_file() [http://www.php.net/function.parse-ini-file]: Cannot open 'data://text/plain,[reply] 0 = "In progress (a normal message submission, with no error encountered so far)" 10 = "Delivered upstream" 11 = "Delivered to mobile"' for reading in /in/43o2N on line 6 bool(false) NULL NULL