list() function php does not works in Mac OSx : I was wondering how come the php function list() does not works on Max OSx but on Windows it does.

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

    list($songAuthor, $songName, $songDate, $songSummary, $songPic, $songLyrics) = split(";", $data, 6);

<!-- end snippet -->

I'm trying to parse a string ($data) into six different variables.
My PHP version is 7.0.8.

How can i make the code run in my Mac OSx?