3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd', 'e'); $key = array_search('d', $arr); unset($arr[$key]); var_dump($arr);

preferences:
46.21 ms | 402 KiB | 5 Q