Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#PHP, 1 (yes, one point!)

PHP, 1 (yes, one point!)

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

Usually I like to find loopholes, but this time I decided to play by the spirit and intent of the contest. Every character and its position is essential to the output. The only places you can substitute are variable names which are not literal values, the whitespace between php and foreach which PHP treats as equivalent, and use of ' vs " which PHP treats as similar.

<?php foreach(array('_MC:`~+V4@SbHR/l[J','dN#UB`5!Rv^NG@D}','9gm6L&-kuD','8OM97g.q]XQ0')as$j)print(hash("crc32",$j,1))?>

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 

#PHP, 1 (yes, one point!)

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

Usually I like to find loopholes, but this time I decided to play by the spirit and intent of the contest. Every character and its position is essential to the output. The only places you can substitute are variable names which are not literal values, the whitespace between php and foreach which PHP treats as equivalent, and use of ' vs " which PHP treats as similar.

<?php foreach(array('_MC:`~+V4@SbHR/l[J','dN#UB`5!Rv^NG@D}','9gm6L&-kuD','8OM97g.q]XQ0')as$j)print(hash("crc32",$j,1))?>

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 

PHP, 1 (yes, one point!)

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

Usually I like to find loopholes, but this time I decided to play by the spirit and intent of the contest. Every character and its position is essential to the output. The only places you can substitute are variable names which are not literal values, the whitespace between php and foreach which PHP treats as equivalent, and use of ' vs " which PHP treats as similar.

<?php foreach(array('_MC:`~+V4@SbHR/l[J','dN#UB`5!Rv^NG@D}','9gm6L&-kuD','8OM97g.q]XQ0')as$j)print(hash("crc32",$j,1))?>

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 
Added an example without a backslash, score is unchanged!
Source Link
user15259
user15259

#PHP, 1 (yes, one point!)

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

Usually I like to find loopholes, but this time I decided to play fair for this contestby the spirit and everyintent of the contest. Every character and its position is essential to the output. The only places you can substitute are variable names which are not literal values, the whitespace between php and foreach which PHP treats as equivalent, and use of ' vs " to delimit stringswhich PHP treats as similar.

<?php foreach(array('N#VA\\j~}J[''_MC:`~+V4@SbHR/l[J','vEl*]@0XQ5''dN#UB`5!Rv^NG@D}','9gm6L&-kuD',':OvMzuOR''8OM97g.q]XQ0')as$qas$j)print(hash("crc32",$q$j,1))?>

I lose four points with the escaped backslash, but oh well, was a fun question.

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 

#PHP, 1

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

I decided to play fair for this contest and every character and its position is essential to the output. The only places you can substitute are variable names, the whitespace between php and foreach and use of ' vs " to delimit strings.

<?php foreach(array('N#VA\\j~}J[','vEl*]@0XQ5','9gm6L&-kuD',':OvMzuOR')as$q)print(hash("crc32",$q,1))?>

I lose four points with the escaped backslash, but oh well, was a fun question.

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 

#PHP, 1 (yes, one point!)

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

Usually I like to find loopholes, but this time I decided to play by the spirit and intent of the contest. Every character and its position is essential to the output. The only places you can substitute are variable names which are not literal values, the whitespace between php and foreach which PHP treats as equivalent, and use of ' vs " which PHP treats as similar.

<?php foreach(array('_MC:`~+V4@SbHR/l[J','dN#UB`5!Rv^NG@D}','9gm6L&-kuD','8OM97g.q]XQ0')as$j)print(hash("crc32",$j,1))?>

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 
Edited to remove some whitespace and semicolon.
Source Link
user15259
user15259

#PHP, 41

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

I decided to play fair for this contest and every character and its position is essential to the output. The only placeplaces you can substitute are variable names, the whitespace between php andforeach and use of '' vs "" to delimit strings.

CRLF after php, TAB before foreach, SPACE before print.

<?phpforeach(array('N#VA\\j~}J[','vEl*]@0XQ5','9gm6L&-kuD',':OvMzuOR')as$q)print(hash("crc32",$q,1));?>

I lose four points with the escaped backslash, but oh well, was a fun question.

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 

#PHP, 4

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

I decided to play fair for this contest and every character and its position is essential to the output. The only place you can substitute are variable names and use of ' vs " to delimit strings.

CRLF after php, TAB before foreach, SPACE before print.

<?phpforeach(array('N#VA\\j~}J[','vEl*]@0XQ5','9gm6L&-kuD',':OvMzuOR')as$q)print(hash("crc32",$q,1));?>

I lose four points with the escaped backslash, but oh well, was a fun question.

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 

#PHP, 1

Using magic characters to generate a checksum, which in binary form matches "Hell", "o, w", "orld", and "! ".

I decided to play fair for this contest and every character and its position is essential to the output. The only places you can substitute are variable names, the whitespace between php andforeach and use of ' vs " to delimit strings.

<?phpforeach(array('N#VA\\j~}J[','vEl*]@0XQ5','9gm6L&-kuD',':OvMzuOR')as$q)print(hash("crc32",$q,1))?>

I lose four points with the escaped backslash, but oh well, was a fun question.

FYI, these are some other magic strings and hashes of interest:

E.D}S: Hell
9UDIRQ: Hell
N7円&*`%: orld
UWX[E^O: orld
mAHzDEb: ! 
uLJ7Ck&: Hell
B+bG5mYJ: Hell
:OvMzuOR: ! 
TgYR9g!6k: o, w
NkFN`!8mI: o, w
N#VA\j~}J[: Hell
vEl*]@0XQ5: o, w
9gm6L&-kuD: orld
*}{Xg@HN`\: ! 
Pj@Y44uA6YJ: Hell
|7OX0VF8gv}: ! 
DLRJAjgMj}\: ! 
!0bT*D}O4Lw: orld
YGN97^v7ZY`: Hell
++~bL/kP:|]W: o, w
8OM97g.q]XQ0: ! 
l^m-DqZ^g[&+: ! 
Ewu]Rv~*DHQ7: Hell
JIqjgF|S!\`8l: Hell
b4l!MEG7vTu6/: Hell
+B:zEq*J\k-Cm: ! 
_}E7wZD76^`Y9AU: orld
q:Nq-~+_S7~N9Hz: ! 
Providing answer.
Source Link
user15259
user15259
Loading
if instead of once...
Source Link
user15259
user15259
Loading
Adding partial results.
Source Link
user15259
user15259
Loading
Source Link
user15259
user15259
Loading

AltStyle によって変換されたページ (->オリジナル) /