3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = tempnam('.', 'test'); $fh = fopen($file, 'w+'); fwrite($fh, '[first_section] one = 1 five = 5 animal = BIRD [second_section] path = "/usr/local/bin" URL = "http://www.example.com/~username" [third_section] phpversion[0] = "5.0" phpversion[1] = "5.1" phpversion[2] = "5.2" phpversion[3] = "5.3" '); fclose($fh); // Parse with sections $ini_array = parse_ini_file($file, true); print_r($ini_array);

preferences:
22.68 ms | 402 KiB | 5 Q