3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print array_map('foo', array(1,2,3), 'test'); function foo($a, $b){ print $b.$a; }
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_map(): Argument #3 should be an array in /in/s4cJk on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: array_map(): Argument #3 should be an array or collection test123 Notice: Array to string conversion in /in/s4cJk on line 3 Array
Output for 4.3.0 - 4.3.1
Warning: array_map() [http://www.php.net/function.array-map]: Argument #3 should be an array in /in/s4cJk on line 3