3v4l.org

run code in 200+ PHP versions simultaneously
<?php //$data = str_getcsv('"blah \""', '|', '"', '\\'); $str = '"normal" | "\"bum1\"" | """buum"""'; $data = str_getcsv($str,'|', '"'); print_r($data);
Output for 7.1.25 - 7.3.5
Array ( [0] => normal [1] => \"bum1\" [2] => "buum" )