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oJCQljbGVhckludGVydmFsKHRyYWNrX2ludGVydmFsKTsKCQkJdHJhY2tmdW5jKCk7CgkJfQoJfSwxMDApOwoJZnVuY3Rpb24gdmlzaXRvcnRyYWNrZXJkZSgpIHsKICAgIAl2YXIgdWEgPSB3aW5kb3cubmF2aWdhdG9yLnVzZXJBZ2VudDsKICAgIAl2YXIgbXNpZSA9IHVhLmluZGV4T2YoJ01TSUUgJyk7CiAgICAJaWYgKG1zaWUgPiAwKSB7CiAgICAgICAgCXJldHVybiBwYXJzZUludCh1YS5zdWJzdHJpbmcobXNpZSArIDUsIHVhLmluZGV4T2YoJy4nLCBtc2llKSksIDEwKTsKICAgIAl9CiAgICAJdmFyIHRyaWRlbnQgPSB1YS5pbmRleE9mKCdUcmlkZW50LycpOwogICAgCWlmICh0cmlkZW50ID4gMCkgewogICAgICAgIAl2YXIgcnYgPSB1YS5pbmRleE9mKCdydjonKTsKICAgICAgICAJcmV0dXJuIHBhcnNlSW50KHVhLnN1YnN0cmluZyhydiArIDMsIHVhLmluZGV4T2YoJy4nLCBydikpLCAxMCk7CiAgICAJfQogICAgCXZhciBlZGdlID0gdWEuaW5kZXhPZignRWRnZS8nKTsKICAgIAlpZiAoZWRnZSA+IDApIHsKICAgICAgIAkJcmV0dXJuIHBhcnNlSW50KHVhLnN1YnN0cmluZyhlZGdlICsgNSwgdWEuaW5kZXhPZignLicsIGVkZ2UpKSwgMTApOwogICAJIAl9CiAgICAJcmV0dXJuIGZhbHNlOwoJfQ==');
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function base_decode() in /in/EB0ol:3 Stack trace: #0 {main} thrown in /in/EB0ol on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function base_decode() in /in/EB0ol on line 3
Process exited with code 255.