3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encrypt($cr){ $c=$b=$a=array(); $d=array('?', '(' , '@' , ';' , '$','#',']','&','*'); $d=array_merge(range($d,'a','z'),range('A','Z'),range(0,9)); $d=array_merge($d,array('!',')','_','+','|','%','/','[','.',' ') ); $e=9;$f=0; for(;$f<$e;$f++) { for($g=0;$g<$e;$g++){ $b[$f][$g]=$d[$f*$e+$g]; $a[$f][$g]=str_rot13($d[($e*$e-1)-($f*$e+$g)]); } } unset($d); $h=floor(strlen($cr)/2)*2; if(strlen($cr)==$h) { } } } ?>
Output for 7.0.0
Parse error: syntax error, unexpected '}', expecting end of file in /in/VKdpV on line 23
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected '}' in /in/VKdpV on line 23
Process exited with code 255.

preferences:
168.64 ms | 1395 KiB | 24 Q