3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array( array( 'Category', 'fruit', 'carbs', ) array( 'Day 1 - Program', 'Eat banana', 'Eat bread', ) array( 'Day 1 - record', '', '', ) ); $output = call_user_func_array( 'array_map', array_merge( array(NULL), $input ) ); var_dump($output);
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting ')' in /in/SU7Hh on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ARRAY, expecting ')' in /in/SU7Hh on line 9
Process exited with code 255.

preferences:
186.12 ms | 1399 KiB | 64 Q