PHP Brainfuck interpreter
This is PHP implementation of interpreter for Brainfuck.
The brainfuck programming language is an esoteric programming language noted for its extreme minimalism. It is a Turing tarpit, designed to challenge and amuse programmers, and is not suitable for practical use.
$code = <<<EOT ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++ .>+.+++++++..+++.>++.<<+++++++++++++++.>.+++. ------.--------.>+.>. EOT; $bf = new Brainfuck($code); $bf->run();
$ composer require dotzero/brainfuck
Clone the project using:
$ git clone https://github.com/dotzero/brainfuck-php
and include the source file with:
First install the dependencies, and after you can run:
Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php