3v4l.org

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

preferences:
51.79 ms | 402 KiB | 5 Q