cmd+k|ctrl+k
cmd+k
ctrl+k
Navigation
Browse public code snippets.
Contact us about glot.io.
Read the privacy policy.
Manage snippets in your account.
Open your account settings.
Languages
Create a new Python snippet.
Create a new TypeScript snippet.
Create a new C snippet.
Create a new Rust snippet.
Create a new Java snippet.
Php
public
petter
2015-06-17T22:02:50Z
2015-06-25T20:09:40Z
<?php $foo = new class() { public function bar() { return "bar"; } }; echo $foo->bar();