3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sites = [['title' => 'Google'], ['title' => 'Bing']]; $links = [['link' => 'www.example1.com'], ['link' => 'www.example2.com']]; foreach ($sites as $index => ['title' => $title]) { printf('%s - <a href="%s">See website</a></br>', $title, $links[$index]['link']); echo "\n"; // <-- for separation since this demo is not rendered html }

preferences:
24.89 ms | 404 KiB | 5 Q