3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "150|google.com/|2500\n600|hello_world|1500"; if (preg_match('~\A([0-9]+\|\S*\|[0-9]+)(?:\R(?1))*\z~', $text)){ echo "Valid!"; }

preferences:
32.05 ms | 404 KiB | 5 Q