3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = @preg_match("ascea(", "test"); // invalid regex if($d === FALSE) { print "Error in regex."; // get detailed info if needed with preg_last_error }
based on iqkmC
Output for 5.6.38 - 7.2.11
Error in regex.