3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strtokInIsolatedScope = function () { $str = str_repeat('abcdef', 1000); strtok($str, 'a'); }; $strtokInIsolatedScope(); var_dump(strtok('a'));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
163.04 ms | 1596 KiB | 11 Q