3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_string = 'Моё первое уведомление для слоупоков аххахахахахахах вот как-то так, надеюсь оно дойдёт';//Моё первое уведомление для слоупоков аххахахахахахах вот как-то так, надеюсь оно дойдёт echo strlen($some_string).PHP_EOL; echo strlen(bin2hex($some_string)); //var_dump([mb_strimwidth(json_encode(array('message' => $some_string)),0,200,'...'),strlen(mb_strimwidth(json_encode(array('message' => $some_string)),0,200,'...'))]); //var_dump(json_encode(array('message' => str_replace(array('\u041a','\u0443'), array('',''), $some_string)))); //} //var_dump(mb_detect_encoding($some_string)); //var_dump(strlen(json_encode(array('message' => $some_string))));
Output for git.master, git.master_jit, rfc.property-hooks
161 322

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:
36.21 ms | 401 KiB | 8 Q