3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello. A question? How strange! Maybe even surreal!? Who knows.'; var_export( preg_split( '/(!\?|[!?.])/', $string, 0, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.99 ms | 1746 KiB | 10 Q