3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "2342342341"; preg_match("#^[0-9]{10}$#", $test)
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected end of file in /in/38jTa on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/38jTa on line 4
Process exited with code 255.

preferences:
185.87 ms | 1399 KiB | 63 Q