3v4l.org

run code in 300+ PHP versions simultaneously
<?php // create a string $string = '123'; // look for a match echo preg_match("/[0-9]{1}[0-9]{1}[0-9]{1}/", $string, $matches);

preferences:
36.18 ms | 402 KiB | 5 Q