3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * The value of the $escape parameter doesn't matter * unless it's set to the one character that makes sense * then it f's up the escaping and produces invalid CSV data * */ $fh = fopen('php://stdout', 'w'); fputcsv($fh, ["test\\\\\",=cmd|' /C calc'!A0,test", "test"]);

preferences:
32.1 ms | 405 KiB | 5 Q