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"]);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
170.54 ms | 3139 KiB | 12 Q