3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '12.345678,23.45678901'; preg_match('/^(\d+\.\d{3})\d*,(\d+\.\d{2})\d*$/', $str, $matches); echo "first number: {$matches[1]}\nsecond number: {$matches[2]}\n";

preferences:
35.09 ms | 405 KiB | 5 Q