3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str[] = "3543900000133243"; $str[] = "3543sssssxxxxxx23243"; $str[] = "1543344=-23-1--923243"; $pattern = "/\A3543.+3243\Z/"; foreach($str as $key=>$string) { echo preg_match($pattern,$string,$res); var_dump($res); }
Output for 4.3.0 - 7.1.0
1array(1) { [0]=> string(16) "3543900000133243" } 1array(1) { [0]=> string(20) "3543sssssxxxxxx23243" } 0array(0) { }