3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(preg_grep('/.*/u', ['foo', 'bar'])); echo preg_last_error_msg(), "\n\n"; var_dump(preg_grep('/.*/u', ['foo', hex2bin('ff'), 'bar'])); echo preg_last_error_msg(), "\n\n";

preferences:
21.88 ms | 477 KiB | 4 Q