3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '5m Grab a beer!'; $b = explode(" ", $a); $c = array('5m'); print_r(array_diff($b,$c));
based on P4E1v
Output for 5.6.0 - 7.3.0rc3
Array ( [1] => Grab [2] => a [3] => beer! )