3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'this is my - string - and more'; var_export(preg_split('~.*\K - ~', $string));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
170.69 ms | 2001 KiB | 12 Q