3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "This is a test string."; $length = preg_match_all('/[^ ]/' , $value, $matches); echo $length; echo "\n"; //example to filter (space) and the character i $length = preg_match_all('/[^ i]/' , $value, $matches); echo $length;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
218.01 ms | 2690 KiB | 9 Q