3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fp = tmpfile(); fwrite($fp, " "); rewind($fp); var_dump(fgetcsv($fp));
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(1) { [0]=> string(1) " " }
Output for 5.2.10 - 5.3.6
array(1) { [0]=> NULL }
Output for 5.0.0 - 5.2.9
array(1) { [0]=> string(0) "" }
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for fgetcsv() in /in/6WHDB on line 5 NULL