3v4l.org

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