3v4l.org

run code in 300+ PHP versions simultaneously
<?php $split_point = ' - '; $string = 'this is my - string - and more'; $result = array_map('strrev', explode($split_point, strrev($string))); echo $result;

preferences:
39.91 ms | 402 KiB | 5 Q