3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(str_getcsv('"Some text"|"2222"', '|', '"'));
based on p0TZ4
Output for 5.6.0 - 7.2.6
array(2) { [0]=> string(9) "Some text" [1]=> string(4) "2222" }