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dGg9IjUiIGhlaWdodD0iNSIgLz48L3RkPg0KICAgICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgY2xhc3M9InRvcCI+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPjxpbWcgc3JjPSJpbWFnZXMvY29ybl8yLmpwZyIgd2lkdGg9IjUiIGhlaWdodD0iNSIgLz48L3RkPg0KICAgICAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgICAgPHRyPg0KICAgICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgY2xhc3M9ImxmdCI+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJjZW50ZXIiIHZhbGlnbj0idG9wIiBiZ2NvbG9yPSIjRkZGRkZGIj48dGFibGUgd2lkdGg9IjEwMCUiIGJvcmRlcj0iMCIgY2VsbHNwYWNpbmc9IjAiIGNlbGxwYWRkaW5nPSIwIj4NCiAgICAgICAgICAgICAgICAgICAgICA8dHI+DQogICAgICAgICAgICAgICAgICAgICAgICA8dGQgdmFsaWduPSJ0b3AiPjwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgICAgICAgIDw/DQokbnBxcnk9bXlzcWxfcXVlcnkoInNlbGVjdCAqIGZyb20gdGJsX2l0ZW1zIHdoZXJlIGlzRmVhdHVyZWQ9J3knIGFuZCBsbmdpZD0nIi4kTG5nSUQuIicgb3JkZXIgYnkgcmFuayIpIG9yIGRpZShteXNxbF9lcnJvcigpKTsNCmlmKCRucHFyeSl7DQppZihteXNxbF9udW1fcm93cygkbnBxcnkpPjApew0KJGs9MTsNCj8+DQogICAgICAgICAgICAgICAgICAgICAgPHRyPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGhlaWdodD0iNSI+PC90ZD4NCiAgICAgICAgICAgICAgICAgIC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iAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYWxpZ249ImNlbnRlciIgdmFsaWduPSJ0b3AiIGJnY29sb3I9IiNGRkZGRkYiPjx0YWJsZSB3aWR0aD0iOTklIiBib3JkZXI9IjAiIGNlbGxzcGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBoZWlnaHQ9IjEzMCIgYWxpZ249ImNlbnRlciI+PGEgaHJlZj0iPD89JHR4dExuazI/PiI+PGltZyBzcmM9Ijw/PSRpdG1pbWdzMS4kZGF0YVsiSXRtbEltZyJdOz8+IiBhbHQ9Ijw/PXN1YnN0cigkZGF0YVsnSXRtTmFtZSddLDAsMjUpOz8+IiBoZWlnaHQ9IjEzMCIgYm9yZGVyPSIwIiB0aXRsZT0iPD89c3Vic3RyKCRkYXRhWydJdG1OYW1lJ10sMCwyNSk7Pz4iIC8+PC9hPjwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBoZWlnaHQ9IjIyIiBhbGlnbj0iY2VudGVyIiBjbGFzcz0iYmxhY2siPjxzcGFuIHN0eWxlPSJwYWRkaW5nOjhweDsiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDw/PXN1YnN0cigkZGF0YVsnSXRtTmFtZSddLDAsMjUpOz8+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9zcGFuPjwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBoZWlnaHQ9IjIyIiBhbGlnbj0iY2VudGVyIiBjbGFzcz0icmVkYm9sZCI+PHN0cm9uZz4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Pz0kZGF0YVsnQXJ0Tm8nXTs/Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Ryb25nPjwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPjwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGJnY29sb3I9IiNGRkZGRkYiIGNsYXNzPSJyaXQiPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCB3aWR0aD0iNSIgaGVpZ2h0PSI1Ij48aW1nIHNyYz0iaW1hZ2VzL2Nvcm5fMy5qcGciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiIC8+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgY2xhc3M9ImJ0bSI+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgd2lkdGg9IjUiIGhlaWdodD0iNSI+PGltZyBzcmM9ImltYWdlcy9jb3JuXzQuanBnIiB3aWR0aD0iNSIgaGVpZ2h0PSI1IiAvPjwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgPC90YWJsZT48L3RkPg0KICAgICAgICAgICAgICAgICAgICAgICAgPD8NCmlmICgkayU0PT0wKXsNCmVjaG8oIjwvdHI+PHRyPiIpOw0KfQ0KJGs9JGsrMTsNCn0NCj8+DQogICAgICAgICAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgICAgICAgIDw/DQp9ZWxzZXsNCj8+DQogICAgICAgICAgICAgICAgICAgICAgPHRyPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRkIGFsaWduPSJjZW50ZXIiIHZhbGlnbj0ibWlkZGxlIj48Pz0kdGV4dF9jb21pbmdzb29uPz48L3RkPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICAgICAgICA8PyANCn0NCn0NCj8+DQogICAgICAgICAgICAgICAgICAgICAgPC90YWJsZT48L3RkPg0KICAgICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgY2xhc3M9InJpdCI+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICAgIDx0cj4NCiAgICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPjxpbWcgc3JjPSJpbWFnZXMvY29ybl8zLmpwZyIgd2lkdGg9IjUiIGhlaWdodD0iNSIgLz48L3RkPg0KICAgICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgY2xhc3M9ImJ0bSI+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPjxpbWcgc3JjPSJpbWFnZXMvY29ybl80LmpwZyIgd2lkdGg9IjUiIGhlaWdodD0iNSIgLz48L3RkPg0KICAgICAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgICAgPC90YWJsZT48L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgIDx0cj4NCiAgICAgICAgICAgICAgICA8dGQgaGVpZ2h0PSI1IiBhbGlnbj0iY2VudGVyIj48L3RkPg0KICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICA8L3RhYmxlPjwvdGQ+DQogICAgICAgICAgICA8dGQgd2lkdGg9IjI0MyIgdmFsaWduPSJ0b3AiPjw/cGhwIGluY2x1ZGUoImluY19mcm50X2Jhci5waHAiKTsgPz48L3RkPg0KICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICA8L3RhYmxlPjwvdGQ+DQogICAgICA8L3RyPg0KICAgICAgPHRyPg0KICAgICAgICA8dGQgaGVpZ2h0PSI1Ij48L3RkPg0KICAgICAgPC90cj4NCiAgICA8L3RhYmxlPjwvdGQ+DQogIDwvdHI+DQogIDx0cj4NCiAgICA8dGQgaGVpZ2h0PSI5MiIgYWxpZ249ImNlbnRlciIgc3R5bGU9ImJhY2tncm91bmQtaW1hZ2U6dXJsKGltYWdlcy9idG1fYmcuanBnKTsgYmFja2dyb3VuZC1yZXBlYXQ6cmVwZWF0LXg7Ij48P3BocCBpbmNsdWRlKCJpbmNfZm9vdGVyLnBocCIpOyA/PjwvdGQ+DQogIDwvdHI+DQo8L3RhYmxlPg0KPC9ib2R5Pg0KPC9odG1sPg0K"));
Output for 7.0.0 - 7.1.0
Parse error: syntax error, unexpected '<', expecting end of file in /in/hkrvs(1) : eval()'d code on line 1
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: syntax error, unexpected '<', expecting $end in /in/hkrvs(1)(f05387d60d99089ae8941dbd9878ff1b) : eval()'d code on line 1
Output for 5.4.11 - 5.6.28
Parse error: syntax error, unexpected '<' in /in/hkrvs(1) : eval()'d code on line 1
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.4.10
Parse error: syntax error, unexpected '<' in /in/hkrvs(1) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '<' in /in/hkrvs(1) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/hkrvs(1) : eval()'d code on line 1
Process exited with code 255.