3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function tokenize($str, $token) { $tokenizedStrArr = array(); $tokStr = strtok($str, $token); while($tokStr !== false) { $tokenizedStrArr[] = $tokStr; $tokStr = strtok($token); } return $tokenizedStrArr; }
Output for 4.3.0 - 7.1.0