3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'No.43,Jalan Bandar Bahagia,Taman Pinji Mewah 1'; echo preg_replace('~^[^,]*,[^,]*\K,~', '<br>', $string);

preferences:
113.43 ms | 2679 KiB | 5 Q