3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; $arr2 = array_map(function ($e) { return 2 * $e; }); var_dump($arr2);
Output for 5.6.0 - 7.3.0alpha1
Warning: array_map() expects at least 2 parameters, 1 given in /in/7nOE4 on line 5 NULL