3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp = "2_【23区・千葉】"; echo strlen( $tmp ) *(-1) + 3 ; $tmp = mb_strimwidth($tmp , strlen( $tmp ) *(-1) + 3 , strlen($tmp ) - 3 ); echo $tmp ;
based on dI1mn
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
-19 Warning: mb_strimwidth(): Start position is out of range in /in/5gAZd on line 4
Output for hhvm-3.22.0
-19 Warning: Start position is out of reange in /in/5gAZd on line -1
Output for hhvm-3.18.5 - 3.21.3
-19 Warning: Start position is out of reange in /in/5gAZd on line 4