3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'Jessie J, Ariana Grande and Nicki Minaj - Bang Bang (Audio)'; print_r( preg_split('/([\.,-_;&]|\band\b)/', $string, -1, PREG_SPLIT_NO_EMPTY));
based on 9hiqH
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant  PREG_SPLIT_NO_EMPTY - assumed ' PREG_SPLIT_NO_EMPTY' in /in/LEqD5 on line 5 Warning: preg_split() expects parameter 4 to be integer, string given in /in/LEqD5 on line 5
Output for 5.2.0 - 5.6.28
Notice: Use of undefined constant  PREG_SPLIT_NO_EMPTY - assumed ' PREG_SPLIT_NO_EMPTY' in /in/LEqD5 on line 5 Warning: preg_split() expects parameter 4 to be long, string given in /in/LEqD5 on line 5
Output for 4.3.0 - 5.1.6
Notice: Use of undefined constant  PREG_SPLIT_NO_EMPTY - assumed ' PREG_SPLIT_NO_EMPTY' in /in/LEqD5 on line 5 Array ( [0] => [1] => essie [2] => [3] => [4] => riana [5] => rande [6] => [7] => icki [8] => inaj [9] => [10] => ang [11] => ang ( [12] => udio) )