3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Just 44 4 test 444'; preg_match_all('!\d+!', $str, $matches); print_r($matches); if (in_array("4", $matches[0])){ echo "Match found"; } else { echo "Match not found"; }

preferences:
24.91 ms | 406 KiB | 5 Q