3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(1, 2); $file = new splfileobject('/tmp/stdfile.txt', 'w+'); $file->fputcsv($a); var_dump(file_get_contents('/tmp/stdfile.txt'));
based on kuGq9