3v4l.org

run code in 200+ PHP versions simultaneously
<?php $fileContents = <<<EOD "quote \"testing\"","" "quote ""testing""","" "quote "testing"","" EOD; $handle = fopen('php://memory', 'w'); fwrite($handle, $fileContents); fseek($handle, 0); while(($test = fgetcsv($handle)) !== false) { print_r($test); }
based on ZRbQa
Output for 5.6.0 - 7.3.1
Array ( [0] => quote \"testing\" [1] => ) Array ( [0] => quote "testing" [1] => ) Array ( [0] => quote testing"" [1] => )