3v4l.org

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

preferences:
49.77 ms | 402 KiB | 5 Q