3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Your code here! echo strlen(mb_convert_encoding('俱', 'UTF-16')); echo strlen(mb_convert_encoding('𠀋', 'UTF-16')); ?>
Output for 8.0.1 - 8.0.28, 8.1.0 - 8.1.19, 8.2.0 - 8.2.6
24

preferences:
20.05 ms | 405 KiB | 5 Q