3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { var_dump(func_get_arg()); } $str = '\', phpinfo(), \''; preg_replace('/^(.*)$/e', 'test(\'\1\')', $str);

preferences:
51.68 ms | 402 KiB | 5 Q