3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str1 = "3543900000133243"; $str2 = "354334494923243"; $str3 = "154334494923243"; echo preg_match("/\A3543.+3243\Z/",$str1,$res); var_dump($res); echo preg_match("/\A3543.+3243\Z/",$str2,$res); var_dump($res); echo preg_match("/\A3543.+3243\Z/",$str3,$res); var_dump($res);
Output for 4.3.0 - 7.1.0
1array(1) { [0]=> string(16) "3543900000133243" } 1array(1) { [0]=> string(15) "354334494923243" } 0array(0) { }