3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phone_no=918553649086; $length=strlen($phone_no); if($length==12){ $nineone = substr($phone_no, 0, 2); echo $nineone; }
Output for 4.3.0 - 7.2.0
91