3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<EOT Fødselsdato: 20.08.1979<br> HPR-nummer: 8936447 EOT; $content = preg_split("/<br>/", $content) array_map("trim",$content) var_dump($content);
Output for 5.6.0 - 5.6.29, 7.0.0 - 7.0.14, 7.1.0
Parse error: syntax error, unexpected 'array_map' (T_STRING) in /in/5g9h8 on line 8
Process exited with code 255.

preferences:
181.5 ms | 1387 KiB | 53 Q