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:
155.81 ms | 2002 KiB | 10 Q