3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 'many monkeys'; printf("[%10.10s]\n", $t);
based on 9NgBq
Output for 7.1.25 - 7.1.30, 7.2.0 - 7.2.33, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12, 8.0.0
[many monke]