CALC fixed by Chiether

<?while($v=trim(fgets(STDIN))){preg_match_all('/(^\d+| \D \d+)/',$v=preg_replace('(\D)',' \0 ',$v),$m);$c="";foreach($m[1] as $k)$c="($c$k)";eval("\$b=$c;");echo"$v = $b
";}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page