3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '123444 '; if (is_numeric($string)) { echo "Its Numeric"; } else { echo "Its NOT Numeric"; } $string = trim($string);

preferences:
43.78 ms | 402 KiB | 5 Q