3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_string = 'Моё первое уведомление для слоупоков аххахахахахахах вот как-то так, надеюсь оно дойдёт';//Моё первое уведомление для слоупоков аххахахахахахах вот как-то так, надеюсь оно дойдёт var_dump([mb_strimwidth(json_encode(array('message' => $some_string)),0,40,'...'),strlen(mb_strimwidth(json_encode(array('message' => $some_string)),0,40,'...'))]); //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
array(2) { [0]=> string(40) "{"message":"\u041c\u043e\u0451 \u043f..." [1]=> int(40) }

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