3v4l.org

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

preferences:
36.74 ms | 402 KiB | 5 Q