3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = '1dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'; echo mb_strlen($value); $value = @iconv('UTF-8', 'UTF-8', $value); $value = mb_convert_encoding($value, 'UTF-8', 'UTF-8'); echo mb_strlen($value);
Output for 5.0.0 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28 - 7.0.5, 7.0.14 - 7.1.0
7777
Output for 7.0.6
77 Fatal error: Uncaught Error: Call to undefined function iconv() in /in/2mmSr:5 Stack trace: #0 {main} thrown in /in/2mmSr on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9, 5.5.35, 5.6.21
77
Process exited with code 255.
Output for 4.3.0 - 4.3.1
77