title: PHP in command line
body: <p>Using Python I can test my code in the terminal / command line by typing</p>
  
  <pre><code>python 
  python&gt; print "hello world"
  </code></pre>
  
  <p>I would like to do this with PHP too, but when typing:</p>
  
  <pre><code>php
  echo "hello world";
  </code></pre>
  
  <p>it does not work.. Is this possible? what should I do? 
  A quick search on the internet gives a lot of results that call an actual .php file to run. I only want to test a single sentence if possible, without creating files and stuff. </p>