3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Your code here! 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
2

preferences:
26.65 ms | 411 KiB | 13 Q