3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = @preg_match("ascea(", "test"); // invalid regex if($d === FALSE) { print "Error in regex."; // get detailed info if needed with preg_last_error }

preferences:
59.1 ms | 402 KiB | 5 Q