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:
27.2 ms | 404 KiB | 5 Q