3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_string = 'Моё первое уведомление для слоупоков аххахахахахахах вот как-то так, надеюсь оно дойдёт';//Моё первое уведомление для слоупоков аххахахахахахах вот как-то так, надеюсь оно дойдёт echo strlen($some_string).PHP_EOL; echo strlen(base64_encode($some_string)); var_dump([mb_strimwidth(json_encode(array('message' => stripslashes($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 216array(2) { [0]=> string(200) "{"message":"\u041c\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u043b\u043e\u0443\u043f\u043e\u043a\..." [1]=> int(200) }

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.68 ms | 401 KiB | 8 Q