3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a"b', 'a\\"b'); $file = fopen('php://memory', 'w+'); fputcsv($file, $array); rewind($file); var_dump(stream_get_contents($file)); fclose($file);

preferences:
48.5 ms | 402 KiB | 5 Q