3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = '/tmp/FOO2AsD16'; file_put_contents($file, ' foo=bar #hashcomment =nothing ;realcomment=nowt baz=quux '); print_r( parse_ini_file($file) );
based on pbQuE
Output for 5.0.0 - 5.2.17, 7.0.0 - 7.1.0
Array ( [foo] => bar [#hashcomment] => nothing [baz] => quux )
Output for 5.3.0 - 5.6.28
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO2AsD16 on line 3 in /in/aY95V on line 11 Array ( [foo] => bar [baz] => quux )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: file_put_contents() in /in/aY95V on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: file_put_contents() in /in/aY95V on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: file_put_contents() in /in/aY95V on line 4