3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = "foo\n"; echo preg_match("~^[a-z]+$~", $t, $m) . "\n"; echo strlen($m[0]);
based on fX1j2
Output for 5.5.0 - 7.3.0beta1
1 3