3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sValue = '50'; echo mb_substr(strip_tags($sValue), 0, 50, 'UTF-8')."\n"; $sValue = 50; echo mb_substr(strip_tags($sValue), 0, 50, 'UTF-8')."\n"; $sValue = 50.0; echo mb_substr(strip_tags($sValue), 0, 50, 'UTF-8')."\n";
based on TRZSr
Output for 4.3.0 - 7.1.0
50 50 50