Finnaly, i found the PHP script for the concept of Turing Machine. Thanks to igorw via gist github
So, this is the turing machine for addition, subtraction, multiplication, and division.
- Clone this code
 - Open the file you want to try it.
 - Change the tape array in
 
tape = []
- Then Run it
 
- If you want to test the code, the input tape is in unary. For example if you want to input 3 you must input 111, or 5 is 11111, etc.
 - For the operator is '+' for addition, '-' for substraction, '*' for multiplication, and '/' for division.
 - So, example, if you want to write 4+3 , you must input 1111+111 or in tape array is looks like
 
tape = ['1','1','1','1','+','1','1','1'];
- important for division only. Add '#' before and after the number. Example 4/2 is #1111/11###
 - The result is the total numbers of 1 after '_' character.
 
If you want to contribute to adding the concept of turing machine, I am very happy. Add to the main directory. For a turing machine file that can be developed named develope.php Thank you.