3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wl = array( 'word2' => 'link2.com', 'word3' => 'link3.com', 'word4' => 'link4.com', 'word5' => 'link5.com' ); $newarr = array_keys($wl); shuffle($newarr); echo $newarr[0] . " - " . $wl[$newarr[0]];

preferences:
34.85 ms | 402 KiB | 5 Q