Last active
September 28, 2022 13:52
-
-
Save nsfisis/04c227d5a419867472a0b23a83ad2919 to your computer and use it in GitHub Desktop.
fizzbuzz in php with these limitations: 3 letters per line except <?php, whitespace is prohibited except for line feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x | |
=# | |
'i | |
S' | |
;; | |
$y | |
=' | |
b! | |
'; | |
$c | |
=# | |
$x | |
^# | |
$y | |
;# | |
$x | |
=# | |
'x | |
Om | |
'; | |
$y | |
=' | |
k! | |
o' | |
;# | |
$r | |
=# | |
$x | |
^# | |
$y | |
;# | |
$x | |
=# | |
'k | |
Sk | |
~} | |
Ma | |
'; | |
$y | |
=' | |
x! | |
s! | |
k! | |
'; | |
$w | |
=# | |
$x | |
^# | |
$y | |
;# | |
$x | |
=# | |
'z | |
Hd | |
G' | |
;# | |
$y | |
=' | |
x! | |
~! | |
'; | |
$p | |
=# | |
$x | |
^# | |
$y | |
;# | |
$x | |
=# | |
'L | |
[p | |
'; | |
$y | |
=' | |
c! | |
'; | |
$f | |
=# | |
$x | |
^# | |
$y | |
;# | |
$x | |
=# | |
'H | |
[p | |
'; | |
$y | |
=' | |
_! | |
'; | |
$b | |
=# | |
$x | |
^# | |
$y | |
;# | |
$b | |
[1 | |
]= | |
$c | |
(# | |
13 | |
*9 | |
); | |
$s | |
=# | |
$r | |
(1 | |
,( | |
10 | |
** | |
2) | |
); | |
$w | |
(# | |
$s | |
,# | |
fn | |
(# | |
$i | |
)# | |
=> | |
$p | |
(( | |
(# | |
$i | |
%3 | |
?# | |
'' | |
:# | |
$f | |
). | |
(# | |
$i | |
%5 | |
?# | |
'' | |
:# | |
$b | |
)? | |
:# | |
$i | |
)# | |
.' | |
') | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$r | |
=@ | |
r. | |
@a | |
.# | |
@n | |
.# | |
@g | |
.# | |
@e | |
;# | |
$w | |
=@ | |
a. | |
@r | |
.# | |
@r | |
.# | |
@a | |
.# | |
@y | |
.# | |
@_ | |
.# | |
@w | |
.# | |
@a | |
.# | |
@l | |
.# | |
@k | |
;# | |
$p | |
=@ | |
p. | |
@r | |
.# | |
@i | |
.# | |
@n | |
.# | |
@t | |
.# | |
@f | |
;# | |
$s | |
=# | |
$r | |
(1 | |
,( | |
10 | |
** | |
2) | |
); | |
$w | |
(# | |
$s | |
,# | |
fn | |
(# | |
$i | |
)# | |
=> | |
$p | |
(( | |
(# | |
$i | |
%3 | |
?# | |
'' | |
:@ | |
F. | |
@i | |
.# | |
@z | |
.# | |
@z | |
). | |
(# | |
$i | |
%5 | |
?# | |
'' | |
:@ | |
B. | |
@u | |
.# | |
@z | |
.# | |
@z | |
)? | |
:# | |
$i | |
)# | |
.' | |
') | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$p= | |
'p' | |
.(( | |
'r' | |
)). | |
'i' | |
.(( | |
'n' | |
)). | |
't' | |
.(( | |
'f' | |
)); | |
$a= | |
'F' | |
.(( | |
'i' | |
)). | |
'z' | |
.(( | |
'z' | |
)); | |
$b= | |
'B' | |
.(( | |
'u' | |
)). | |
'z' | |
.'z | |
';; | |
$c= | |
$a. | |
$b; | |
;$a | |
.=' | |
';; | |
for | |
($i | |
=1; | |
$i< | |
10* | |
10; | |
($i | |
+=1 | |
)){ | |
$i% | |
017 | |
==0 | |
?$p | |
($c | |
):( | |
$i% | |
3== | |
00? | |
$p( | |
$a) | |
:(( | |
$i% | |
5== | |
0)? | |
$p( | |
$b) | |
:$p | |
($i | |
.(' | |
')) | |
)); | |
}?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$p= | |
chr | |
((( | |
112 | |
))) | |
;$p | |
.=( | |
chr | |
((( | |
114 | |
))) | |
);0 | |
;0; | |
;$p | |
.=( | |
chr | |
((( | |
105 | |
))) | |
);0 | |
;$p | |
.=( | |
chr | |
((( | |
110 | |
))) | |
);0 | |
;$p | |
.=( | |
chr | |
((( | |
116 | |
))) | |
);0 | |
;$p | |
.=( | |
chr | |
((( | |
102 | |
))) | |
);; | |
$a= | |
chr | |
((( | |
70) | |
),) | |
;$a | |
.=( | |
chr | |
((( | |
105 | |
))) | |
);0 | |
;$a | |
.=( | |
chr | |
((( | |
122 | |
))) | |
);0 | |
;$a | |
.=( | |
chr | |
((( | |
122 | |
))) | |
);; | |
$b= | |
chr | |
((( | |
66) | |
),) | |
;$b | |
.=( | |
chr | |
((( | |
117 | |
))) | |
);0 | |
;$b | |
.=( | |
chr | |
((( | |
122 | |
))) | |
);0 | |
;$b | |
.=( | |
chr | |
((( | |
122 | |
))) | |
).' | |
';; | |
$c= | |
$a. | |
$b; | |
;$a | |
.=' | |
';; | |
$j= | |
'i' | |
;0; | |
for | |
($i | |
=1; | |
$i< | |
10* | |
10; | |
$$j | |
+=1 | |
){; | |
$i% | |
017 | |
==0 | |
?$p | |
($c | |
):( | |
$i% | |
3== | |
00? | |
$p( | |
$a) | |
:($ | |
$j% | |
5== | |
00? | |
$p( | |
$b) | |
:$p | |
($i | |
.(' | |
')) | |
)); | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment