3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [1, 2, 3, 4, 5, 6, 7, 8, 9]; $key = array_rand($list, 3); echo $list[$key]; ?>

preferences:
15.74 ms | 407 KiB | 5 Q