3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( preg_match('/-?[\d]*\.?[\d]*/', "xxxx") ) { echo "OK: matches"; } else { echo "Bad: doesn't match"; exit(); }

preferences:
53.88 ms | 402 KiB | 5 Q