Skip to content

Instantly share code, notes, and snippets.

@wakabadou
Last active March 4, 2018 07:42
Show Gist options
  • Save wakabadou/342cc61aff99ab70f9d497ee56de8a0d to your computer and use it in GitHub Desktop.
Save wakabadou/342cc61aff99ab70f9d497ee56de8a0d to your computer and use it in GitHub Desktop.
returntrue.win
お行儀が良いもの madness 備考
Level 1 true !0
Level 2 function () {return 'true';} str_rot13 madnessはzonuexeさんのヒントにより解明
Level 3 '1' !0
Level 4 0 0
Level 5 4444 🌸
Level 6 new class {public function __invoke () {return $this;}} ($x=session_id)($x).$x madnessはhttps://gist.github.com/bordeux/2f679dea12248983dac352da1a34e531#gistcomment-2351397 によるもの
Level 7 (object) [true] (object)[!0]
Level 8 new class extends Bar {} new class extends Bar{}
Level 9 !1 a
Level 10 function (&$x) {$x = new Bar(true);} function(&$x){$x=new$x(1);} madnessは https://gist.github.com/bordeux/2f679dea12248983dac352da1a34e531#gistcomment-2357201 によるもの
Level 11 [null] []
@zonuexe
Copy link

zonuexe commented Feb 15, 2018

6は $f = function () use (&$f) { return$f; } でもいけます

@wakabadou
Copy link
Author

ありがとうございます。
それをしたかったけど至れなかった。

@hirak
Copy link

hirak commented Feb 15, 2018

9の解にNANもスマートだと思いました。INFは何を演算してもINFなのでダメ…

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