3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'あいうえお研究所'; echo rtrim($string, '  ');
Output for 8.1.34, 8.2.27 - 8.2.30, 8.3.0 - 8.3.29, 8.4.1 - 8.4.16, 8.5.0 - 8.5.1
あいうえお研究�

preferences:
61.58 ms | 406 KiB | 5 Q