3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $message = 'Just gonna say sum stuff hare so ya just rolll wid itt. Yo.'; if (strlen(preg_replace('/\\s/si','',$message)) < 30 || preg_match('/(.)\1{6}/si',strtolower($message)) || preg_match('/(.{2})\1{3}/si',strtolower($message)) || preg_match('/(.+)\1{2}/si',strtolower($message))) { echo 'test'; } var_dump(strlen(preg_replace('/\\s/si','',$message)) < 30); var_dump(preg_match('/(.)\1{6}/si',strtolower($message))); var_dump(preg_match('/(.{2})\1{3}/si',strtolower($message))); var_dump(preg_match('/(.+)\1{2}/si',strtolower($message)));
Output for 4.3.0 - 7.2.0
testbool(false) int(0) int(0) int(1)