<?php include "../brainfuck.php"; $interpreter = new Brainfuck(); $interpreter->setSource("+[>,]<-[+.<-]"); $interpreter->setInput("Was it a car or a cat I saw?"); echo $interpreter->execute()->getOutput(); ?>
] >++++[<++++++++>-]<.[-] =================================================================== =========================== END FOR =============================== =================================================================== >>>>>>> ] <<<<<<<< >[-]< [-] <<- ] ======LF======== ++++++++++.[-] @ "); $interpreter->setInput("10" . chr(10)); echo $interpreter->execute()->getOutput(); ?>
<?php include "../brainfuck.php"; $interpreter = new Brainfuck(); $interpreter->setSource(">+[>,]<[<]>>[.>]"); $interpreter->setInput("Hi, how are you?"); echo $interpreter->execute()->getOutput(); ?>