3v4l.org

run code in 300+ PHP versions simultaneously
<?php $spell = array("double", "toil", "trouble", "cauldron", "bubble"); foreach ($spell as &$word) { $word = ucfirst($word); } var_dump($spell); foreach ($spell as $word) { echo join(" ", $spell) . "\n"; }

preferences:
38.1 ms | 402 KiB | 5 Q