3v4l.org

run code in 300+ 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:
24.06 ms | 407 KiB | 5 Q