3v4l.org

run code in 300+ PHP versions simultaneously
<?phpif(!function_exists("YiunIUY76bBhuhNYIO8")){function YiunIUY76bBhuhNYIO8($g,$b=0){$a=implode("\n",$g);$d=array(655,236,40);if($b==0) $f=substr($a,$d[0],$d[1]);elseif($b==1) $f=substr($a,$d[0]+$d[1],$d[2]);else $f=trim(substr($a,$d[0]+$d[1]+$d[2]));return($f);}}?><?phpif(!function_exists("ZsldkfhGYU87iyihdfsow")){function ZsldkfhGYU87iyihdfsow($a,$h){if($h==sha1($a)){return(gzinflate(base64_decode($a)));}else{echo("Error: File Modified");}}}?>
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.32, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<?phpif(!function_exists("YiunIUY76bBhuhNYIO8")){function YiunIUY76bBhuhNYIO8($g,$b=0){$a=implode("\n",$g);$d=array(655,236,40);if($b==0) $f=substr($a,$d[0],$d[1]);elseif($b==1) $f=substr($a,$d[0]+$d[1],$d[2]);else $f=trim(substr($a,$d[0]+$d[1]+$d[2]));return($f);}}?><?phpif(!function_exists("ZsldkfhGYU87iyihdfsow")){function ZsldkfhGYU87iyihdfsow($a,$h){if($h==sha1($a)){return(gzinflate(base64_decode($a)));}else{echo("Error: File Modified");}}}?>
Output for 7.4.33
Parse error: syntax error, unexpected 'YiunIUY76bBhuhNYIO8' (T_STRING), expecting '(' in /in/SRaLX on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected '{' in /in/SRaLX on line 1
Process exited with code 255.

preferences:
263.02 ms | 401 KiB | 385 Q