3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Omställning/TSL defaultdatum på gamla ärenden för Eductus"; echo mb_strlen($string, mb_detect_encoding($string)) . "\n"; echo mb_strwidth($string, mb_detect_encoding($string)) . "\n"; echo strwidth($string). "\n"; echo strlen($string);
Output for 7.0.0 - 7.2.0
57 57 Fatal error: Uncaught Error: Call to undefined function strwidth() in /in/Xt4IQ:7 Stack trace: #0 {main} thrown in /in/Xt4IQ on line 7
Process exited with code 255.
Output for 5.0.0 - 5.6.28
57 57 Fatal error: Call to undefined function strwidth() in /in/Xt4IQ on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
57 57 Fatal error: Call to undefined function: strwidth() in /in/Xt4IQ on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
57 57 Fatal error: Call to undefined function: strwidth() in /in/Xt4IQ on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
57 57 Fatal error: Call to undefined function: strwidth() in /in/Xt4IQ on line 7