3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '("one","two","three,subthree","four")'; $string = str_replace(['(', ')'], ['[', ']'], $string); $array = json_decode($string, true); print_r($array);

preferences:
117.82 ms | 1467 KiB | 5 Q