3v4l.org

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

preferences:
165.8 ms | 406 KiB | 5 Q