PHPackages                             sealife/brainfuck - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sealife/brainfuck

ActiveLibrary

sealife/brainfuck
=================

Brainfuck Interpreter in PHP

082PHP

Since Oct 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SeaLife/BrainFuckInterpreter)[ Packagist](https://packagist.org/packages/sealife/brainfuck)[ RSS](/packages/sealife-brainfuck/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Brainfuck Interpreter
=====================

[](#brainfuck-interpreter)

This script will interpret brainfuck within PHP.

Example
-------

[](#example)

```
$parser = new Parser();

$parser->run("+++++++++ [-]");

// or to run a file

$parser->runFile($file);

// to modify the starting memory (to start with a custom one) do

$memory = new Memory();
$parser = new Parser($memory);

$result = $parser->run("[>[>+>+[-]
