3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'äëïöü'; $defaultEncoding = mb_internal_encoding(); $len = strlen($string); $mbLenDefault = mb_strlen($string); $mbLen = mb_strlen($string, 'UTF-8'); echo 'Default Encoding = ' . $defaultEncoding . PHP_EOL . 'strlen = ' . $len . PHP_EOL . 'mb_strlen (' . $defaultEncoding . ') = ' . $mbLenDefault . PHP_EOL . 'mb_strlen (UTF-8) = ' . $mbLen ;
Output for git.master_jit, git.master, rfc.property-hooks
Default Encoding = UTF-8 strlen = 10 mb_strlen (UTF-8) = 5 mb_strlen (UTF-8) = 5

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
30.8 ms | 401 KiB | 8 Q