3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("Puppy", "Teaser", "Chase"); foreach($arr as $key => $a) { if ($a == "Teaser") array_splice($arr, $key, 1); } var_dump($arr); ?>

preferences:
37.36 ms | 402 KiB | 5 Q