3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = tempnam(sys_get_temp_dir(), 'FOO'); file_put_contents($file, ' foo=bar #comment baz=quux '); print_r( parse_ini_file($file) );
based on Qu73h
Output for 5.2.1 - 5.2.17, 7.0.0 - 7.1.0
Array ( [foo] => bar [baz] => quux )
Output for hhvm-3.12.0
Comments starting with '#' are deprecated in /tmp/FOOcwqzgi on line 3 Array ( [foo] => bar [baz] => quux )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOCK0Ded on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.21
Deprecated: Comments starting with '#' are deprecated in /tmp/FOONjrGIQ on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.20
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOv5Zs5E on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.19
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO0tLCH2 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.18
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOYfp92C on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.17
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOMLhLow on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.16
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOFV3NMm on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.15
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOmKTbuk on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.14
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOUEZExI on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.13
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOee1Yhx on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.12
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOfS3Z6h on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.11
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOaIXNlt on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.10
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOvPV7aH on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.9
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOp5uXNE on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.6.8
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOB9pSsb on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.35
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOqQDLcj on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.34
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOF2ox4H on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.33
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOKIQMwp on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.32
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO8f06FK on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.31
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOjdXDou on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.30
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO7adKAq on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.29
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOzeHGm2 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.28
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOYdJ1Ks on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.27
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOwP1zZ0 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.26
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOyfvlwY on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.25
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOagNfmo on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.5.24
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOYNNRLD on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.45
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOVoENKr on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.44
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOR8UAPR on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.43
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOeW1JTj on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.42
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOFcfhYf on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.41
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOcBYTuf on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.40
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO9tG7CB on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.39
Deprecated: Comments starting with '#' are deprecated in /tmp/FOORIulyn on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.38
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOdhQasQ on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.37
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOjco2wh on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.36
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOp3dhwO on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.35
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO62RbBq on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.34
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOcPVhQ7 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.32
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOpGdRpl on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.31
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO3sDiHr on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.30
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOYhNyWs on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.29
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOy39R2x on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.28
Deprecated: Comments starting with '#' are deprecated in /tmp/FOODSXlHz on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.27
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOoR0kuC on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.26
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOCeyPyI on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.25
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOaLTkkK on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.24
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO8fAbuP on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.23
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOw7P4BR on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.22
Deprecated: Comments starting with '#' are deprecated in /tmp/FOONoAvQW on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.21
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOQXoPUQ on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.20
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOzO7GES on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.19
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOaODzuV on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.18
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOx7tZL1 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.17
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOil8ue2 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.16
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOonuLz8 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.15
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO0UIIob on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.14
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOJhgYWc on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.13
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOcmlj7h on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.12
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO0Urbyj on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.11
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOT3Btom on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.10
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOYqHT0r on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.9
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOr6hsdu on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.8
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOYgi4lz on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.7
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOEmXPOA on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.6
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO8QXu6D on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.5
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOjEVf7J on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.4
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOtINXpK on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.3
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOcHzdyN on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.2
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOQX46ST on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.1
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOwRUInU on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.4.0
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOI7OhJ0 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.29
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOo65QiV on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.28
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOK3zUKW on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.27
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO5BpDw2 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.26
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOZ8UDL3 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.25
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO9tQxU9 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.24
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO1aoWGb on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.23
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOLqmoph on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.22
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOkp3l2i on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.21
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOXVIoRo on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.20
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOhQIzpp on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.19
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOzbpmRv on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.18
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO8XvZVw on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.17
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOFQi5gD on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.16
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOpakh5F on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.15
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOMNKSfH on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.14
Deprecated: Comments starting with '#' are deprecated in /tmp/FOONVv6fN on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.13
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO2C5EZO on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.12
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOz6w57S on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.11
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO3FKbhZ on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.10
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOHCDMc2 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.9
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO5yLIl3 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.8
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOakXAxX on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.7
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOiZexZ3 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.6
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOZau1t4 on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.5
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOte8wRa on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.4
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOLK9jTb on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.3
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOmx1A6h on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.2
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOttdAoj on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.1
Deprecated: Comments starting with '#' are deprecated in /tmp/FOOaNONpm on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.3.0
Deprecated: Comments starting with '#' are deprecated in /tmp/FOO40nl2r on line 3 in /in/LK2BJ on line 10 Array ( [foo] => bar [baz] => quux )
Output for 5.0.0 - 5.2.0
Fatal error: Call to undefined function sys_get_temp_dir() in /in/LK2BJ on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: sys_get_temp_dir() in /in/LK2BJ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: sys_get_temp_dir() in /in/LK2BJ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: sys_get_temp_dir() in /in/LK2BJ on line 3