3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1, "apples",2, "oranges",3, "plums"); $filtered = array_filter($array, 'ctype_alpha'); $callback = function($item) { return strtoupper($item); }; $nu = array_map( "strtoupper", $filtered); var_dump($nu); ?>

preferences:
25.51 ms | 407 KiB | 5 Q