Skip to content

Instantly share code, notes, and snippets.

@bordeux
Last active February 20, 2018 18:21
Show Gist options
  • Save bordeux/2f679dea12248983dac352da1a34e531 to your computer and use it in GitHub Desktop.
Save bordeux/2f679dea12248983dac352da1a34e531 to your computer and use it in GitHub Desktop.
Solutions to returntrue.win
1. !0
2. function(){return 'true';}
3. !0
4. 0
5. 𪒧
6. $GLOBALS[v] = create_function('', 'return $GLOBALS[v];')
7. (object)[!0]
8. new class extends Bar{}
9. N //or NaN (if you do not like errors)
10. function(&$x){$x=new Bar(1);}
11. []
@andrewbo
Copy link

#10 may be diminished to function(&$x){$x=new$x(1);}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment