3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $reg = "/<script>.*?<\/script>/is"; $str = "<script>".str_repeat('1',1000000)."</script>"; //长度大于100014 var_dump(preg_match($reg, $str)); //返回NULL
Output for 5.3.4 - 7.1.0
bool(false)
Output for 5.2.0 - 5.3.3
int(0)
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.1.6
int(1)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/r4VUV on line 5
Process exited with code 255.