3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(1, "apples",2, "oranges",3, "plums"); $callback = function($item) { return strtoupper($item); }; $nu = array_map( "strtoupper", $filtered); var_dump($nu); ?>
based on r8Cve
Output for 5.3.22 - 7.3.0beta1
Notice: Undefined variable: filtered in /in/S93jJ on line 9 Warning: array_map(): Argument #2 should be an array in /in/S93jJ on line 9 NULL