<?php
error_reporting(-1);
$startTime=microtime(1);
require 'numberSystem.php';
#$ns = new numberSystem('ascii_visible');  # Cyphers: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
#$ns = new numberSystem('ascii_33_126');   # Cyphers: $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
#$ns = new numberSystem('bin');            # Cyphers: 01
#$ns = new numberSystem('AZKL10');         # Cyphers: AZKL10
#$ns = new numberSystem('niceReadable32'); # Cyphers: 0123456789ABCDEFGJKLMNPRSTUVWXYZ
#$ns = new numberSystem('AZKL10');         # Cyphers: AZKL10
#$ns = new numberSystem('wuerfel');        # Cyphers: 0987123546
$ns = new numberSystem(); # default = niceReadable32

for ($val=0; $val<1000000; $val++) {
    $s = $ns -> getString($val);
/*
    $d = $ns -> getDec($s);
    if ($val != $d) {
        echo "$val\t$s\t$d\tERROR\n";
    } else {
        echo "$val\t$s\t$d\n";
    }
#*/
}
echo "TIME: ", microtime(1) - $startTime , "s\n";