3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $valid_numbers = '639164481688, 63-9164481688,639-164481688,6391-64481688,63916-4481688, 639164-481688,6391644-81688,63916448-1688,639164481-688, 6391644816-88,63916448168-8,639164481688,639164481688,+63-9164481688,+639-164481688,+6391-64481688,+63916-4481688, +639164-481688,+6391644-81688,+63916448-1688,+639164481-688, +6391644816-88,+63916448168-8,+639164481688 +639164481688,0-9164481688,09-164481688,091-64481688,0916-4481688, 09164-481688,091644-81688,0916448-1688,09164481-688, 091644816-88,0916448168-8,09164481688'; $valid_numbers = array_map(function mapfunc($val) { return trim($val); }, explode(',', $valid_numbers)); print_r($valid_numbers);
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'mapfunc' (T_STRING), expecting '(' in /in/98WPi on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting '(' in /in/98WPi on line 6
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/98WPi on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/98WPi on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/98WPi on line 6
Process exited with code 255.