3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "hello melon"; echo strtok($str, 'lo') . "\n"; echo strtok();
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
he Warning: strtok() expects at least 1 parameter, 0 given in /in/TZL4B on line 6
Output for 4.3.0 - 5.2.17
he Warning: Wrong parameter count for strtok() in /in/TZL4B on line 6