snipt

Ctrl+h for KB shortcuts

PHP

PHP Hello World

<?php
    echo "Hello World";
https://snipt.net/embed/cdb2796984bcc8cb34b7f37f0a8b2d95/
https://snipt.net/raw/cdb2796984bcc8cb34b7f37f0a8b2d95/
cdb2796984bcc8cb34b7f37f0a8b2d95
php
PHP
3
2016-09-25T18:46:46
True
False
False
/api/public/snipt/33771/
php-hello-world
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">echo</span> <span class="s2">&quot;Hello World&quot;</span><span class="p">;</span> </span></pre></div> </td></tr></table>
hello, php, world

C

Hello World

1
2
3
4
void HelloWorld()
{
   printf("Hello World!\n");
}
https://snipt.net/embed/08a76044bddc7f59bc95ebb49a522aff/
https://snipt.net/raw/08a76044bddc7f59bc95ebb49a522aff/
08a76044bddc7f59bc95ebb49a522aff
c
C
4
2016-09-23T04:48:49
True
False
False
/api/public/snipt/29846/
hello-world-26
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="kt">void</span> <span class="nf">HelloWorld</span><span class="p">()</span> </span><span id="L-2"><a name="L-2"></a><span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="n">printf</span><span class="p">(</span><span class="s">&quot;Hello World!</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span> </span><span id="L-4"><a name="L-4"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
c, hello, world

PHP

Hello World Php

<?php
echo "Hello, World"; ?>
https://snipt.net/embed/29b3b027ff633e9b5768cbefb3bb10ac/
https://snipt.net/raw/29b3b027ff633e9b5768cbefb3bb10ac/
29b3b027ff633e9b5768cbefb3bb10ac
php
PHP
2
2016-09-26T03:23:25
True
False
False
/api/public/snipt/27001/
hello-world-php
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a><span class="k">echo</span> <span class="s2">&quot;Hello, World&quot;</span><span class="p">;</span> <span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
hello, php, world

Text only

Hello World

Hello World!
https://snipt.net/embed/2d195b6f6cc01030ad50b1ce87121648/
https://snipt.net/raw/2d195b6f6cc01030ad50b1ce87121648/
2d195b6f6cc01030ad50b1ce87121648
text
Text only
1
2016-09-27T00:19:44
True
False
False
/api/public/snipt/22056/
hello-world-20
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>Hello World! </span></pre></div> </td></tr></table>
hello, world

C

hello world to snipt

1
2
3
4
5
6
char * helloSnipt()
{
 char * output = calloc(11,sizeof(char));
 *output = "hello snipt";
 return output;
}
https://snipt.net/embed/2d8bf819ce7f138c41221997e6f2cc19/
https://snipt.net/raw/2d8bf819ce7f138c41221997e6f2cc19/
2d8bf819ce7f138c41221997e6f2cc19
c
C
6
2016-09-22T16:08:21
True
False
False
/api/public/snipt/20267/
hello-world-to-snipt
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="kt">char</span> <span class="o">*</span> <span class="nf">helloSnipt</span><span class="p">()</span> </span><span id="L-2"><a name="L-2"></a><span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="kt">char</span> <span class="o">*</span> <span class="n">output</span> <span class="o">=</span> <span class="n">calloc</span><span class="p">(</span><span class="mi">11</span><span class="p">,</span><span class="k">sizeof</span><span class="p">(</span><span class="kt">char</span><span class="p">));</span> </span><span id="L-4"><a name="L-4"></a> <span class="o">*</span><span class="n">output</span> <span class="o">=</span> <span class="s">&quot;hello snipt&quot;</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="k">return</span> <span class="n">output</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
hello, snipt, world

d-objdump

First Google Go snipt: Hello World

1
2
3
4
5
6
7
package main

import "fmt"

func main() {
  fmt.Printf("Hello, World!")
}
https://snipt.net/embed/0fcbe8cf3dfd64b9622b68290f0bed9b/
https://snipt.net/raw/0fcbe8cf3dfd64b9622b68290f0bed9b/
0fcbe8cf3dfd64b9622b68290f0bed9b
d-objdump
d-objdump
7
2016-09-25T07:39:52
True
False
False
/api/public/snipt/10010/
first-google-go-snipt-hello-world
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="k">package</span> <span class="n">main</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="k">import</span> <span class="s">&quot;fmt&quot;</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="n">func</span> <span class="n">main</span><span class="p">()</span> <span class="p">{</span> </span><span id="L-6"><a name="L-6"></a> <span class="n">fmt</span><span class="p">.</span><span class="n">Printf</span><span class="p">(</span><span class="s">&quot;Hello, World!&quot;</span><span class="p">)</span> </span><span id="L-7"><a name="L-7"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
go, hello, world

C++

hello~

cout<<"hello world"<<endl;
https://snipt.net/embed/42918a5f31a67b9814e60e101451d2e5/
https://snipt.net/raw/42918a5f31a67b9814e60e101451d2e5/
42918a5f31a67b9814e60e101451d2e5
cpp
C++
1
2016-09-26T20:46:58
True
False
False
/api/public/snipt/9227/
hello-3
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="n">cout</span><span class="o">&lt;&lt;</span><span class="s">&quot;hello world&quot;</span><span class="o">&lt;&lt;</span><span class="n">endl</span><span class="p">;</span> </span></pre></div> </td></tr></table>
hello, world

C++

Qt Hello World

qWarning( "Hello World" );
https://snipt.net/embed/7bd37d1ff207c6ac5953ba5872063b6d/
https://snipt.net/raw/7bd37d1ff207c6ac5953ba5872063b6d/
7bd37d1ff207c6ac5953ba5872063b6d
cpp
C++
1
2016-09-26T06:56:46
True
False
False
/api/public/snipt/7853/
qt-hello-world
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="n">qWarning</span><span class="p">(</span> <span class="s">&quot;Hello World&quot;</span> <span class="p">);</span> </span></pre></div> </td></tr></table>
hello, qt, world

Common Lisp

hello world

(format t "%&Hello World")
https://snipt.net/embed/9d28060eb059436605dfcf3bd5eb432e/
https://snipt.net/raw/9d28060eb059436605dfcf3bd5eb432e/
9d28060eb059436605dfcf3bd5eb432e
common-lisp
Common Lisp
1
2016-09-26T22:17:21
True
False
False
/api/public/snipt/5333/
hello-world-5
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="p">(</span><span class="nb">format</span> <span class="no">t</span> <span class="s">&quot;%&amp;Hello World&quot;</span><span class="p">)</span> </span></pre></div> </td></tr></table>
hello, world

PHP

hello world in php

1
2
3
//Hello World in php

echo "Hello World";
https://snipt.net/embed/5969e99f87c8904a4dd1ef72d1018da7/
https://snipt.net/raw/5969e99f87c8904a4dd1ef72d1018da7/
5969e99f87c8904a4dd1ef72d1018da7
php
PHP
3
2016-09-19T19:41:24
True
False
False
/api/public/snipt/1622/
hello-world-in-php
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="x">//Hello World in php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="x">echo &quot;Hello World&quot;;</span> </span></pre></div> </td></tr></table>
hello, php, simple, world
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.