3v4l.org

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

preferences:
41.91 ms | 402 KiB | 5 Q