3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mobile="09029704634"; $mobj="+919029704634"; if(substr($mobile, -10)==substr($mobj, -10)){ $flag=1; }else{ $flag=0; } echo $flag;
based on RXcvk
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
1