3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = '/^([0-9]{10,64})$/'; $sample = '8189649999'; echo (int)preg_match( $pattern, $sample, $matches).PHP_EOL; print_r($matches);
based on s7Zkc
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
1 Array ( [0] => 8189649999 [1] => 8189649999 )
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A1Jj7 on line 4 1PHP_EOLArray ( [0] => 8189649999 [1] => 8189649999 )