3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $csv = <<<CSV foo,bar,"baz","foo,bar,baz,qux","foo "bar baz",201 CSV; var_dump(str_getcsv($csv));
Output for 5.3.0 - 7.1.0
array(6) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> string(3) "baz" [3]=> string(15) "foo,bar,baz,qux" [4]=> string(12) "foo bar baz"" [5]=> string(3) "201" }
Output for 5.0.0 - 5.1.1, 5.1.3 - 5.2.17
Fatal error: Call to undefined function str_getcsv() in /in/7WrP4 on line 7
Process exited with code 255.
Output for 5.1.2
Fatal error: Call to undefined function str_getcsv() in /in/7WrP4 on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_getcsv() in /in/7WrP4 on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: str_getcsv() in /in/7WrP4 on line 7
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: str_getcsv() in /in/7WrP4 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_getcsv() in /in/7WrP4 on line 7