Skip to main content
deleted 3 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139

PHP, 7170 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 2c012001 c800c000 0100 0800 a455 00ff ffff  .., ........U....
0000020: 3541 ef3c 3f66 6f72 283b 3665 343e 2469  5A.<?for(;6e4>$i
0000030: 3b29 6563 686f 2063 6872 2824 692b 2b2f  ;)echo chr($i++/
0000040: 31303936 30252533 3329293b 3b                        100%3  96%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000002c01c80001000800a45500ffffff3541ef3c3f666f72283b3665343e24693b296563686f206368722824692b2b2f3130302533293b''424d0000000000000000230000000c0000002001c00001000800a45500ffffff3541ef3c3f666f72283b3665343e24693b296563686f206368722824692b2b2f39362533293b');

I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (300288 x 200192), which should be piped to a file. This is as large as I can make it without affecting the byte count.


Sample Usage

$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French FlagFrench Flag

PHP, 71 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 2c01 c800 0100 0800 a455 00ff ffff  ..,........U....
0000020: 3541 ef3c 3f66 6f72 283b 3665 343e 2469  5A.<?for(;6e4>$i
0000030: 3b29 6563 686f 2063 6872 2824 692b 2b2f  ;)echo chr($i++/
0000040: 3130 3025 3329 3b                        100%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000002c01c80001000800a45500ffffff3541ef3c3f666f72283b3665343e24693b296563686f206368722824692b2b2f3130302533293b');

I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (300 x 200), which should be piped to a file. This is as large as I can make it without affecting the byte count.


Sample Usage

$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French Flag

PHP, 70 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 2001 c000 0100 0800 a455 00ff ffff  .. ........U....
0000020: 3541 ef3c 3f66 6f72 283b 3665 343e 2469  5A.<?for(;6e4>$i
0000030: 3b29 6563 686f 2063 6872 2824 692b 2b2f  ;)echo chr($i++/
0000040: 3936 2533 293b                           96%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000002001c00001000800a45500ffffff3541ef3c3f666f72283b3665343e24693b296563686f206368722824692b2b2f39362533293b');

I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (288 x 192), which should be piped to a file. This is as large as I can make it without affecting the byte count.


Sample Usage

$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French Flag

added 69 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139

PHP, 71 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 78002c01 5000c800 0100 0800 a455 00ff ffff  ..x,.P.......U....
0000020: 3541 ef3c 3f66 6f72 283b 39363665 3030343e 3e242469  5A.<?for(;9600>$;6e4>$i
0000030: 693b3b29 29656563 6368686f 6f202063 63686872 72282824 2469692b 2b2b2b2f  i;;)echo chr($i++/
0000040: 2f343130 3025 3329 3b                        /40%3100%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000007800500001000800a45500ffffff3541ef3c3f666f72283b393630303e24693b296563686f206368722824692b2b2f34302533293b''424d0000000000000000230000000c0000002c01c80001000800a45500ffffff3541ef3c3f666f72283b3665343e24693b296563686f206368722824692b2b2f3130302533293b');

I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (120300 x 80200), which should be piped to a file. This is as large as I can make it without affecting the byte count.


Sample Usage

$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French FlagFrench Flag

PHP, 71 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 7800 5000 0100 0800 a455 00ff ffff  ..x.P......U....
0000020: 3541 ef3c 3f66 6f72 283b 3936 3030 3e24  5A.<?for(;9600>$
0000030: 693b 2965 6368 6f20 6368 7228 2469 2b2b  i;)echo chr($i++
0000040: 2f34 3025 3329 3b                        /40%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000007800500001000800a45500ffffff3541ef3c3f666f72283b393630303e24693b296563686f206368722824692b2b2f34302533293b');

I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (120 x 80), which should be piped to a file.


Sample Usage

$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French Flag

PHP, 71 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 2c01 c800 0100 0800 a455 00ff ffff  ..,........U....
0000020: 3541 ef3c 3f66 6f72 283b 3665 343e 2469  5A.<?for(;6e4>$i
0000030: 3b29 6563 686f 2063 6872 2824 692b 2b2f  ;)echo chr($i++/
0000040: 3130 3025 3329 3b                        100%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000002c01c80001000800a45500ffffff3541ef3c3f666f72283b3665343e24693b296563686f206368722824692b2b2f3130302533293b');

I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (300 x 200), which should be piped to a file. This is as large as I can make it without affecting the byte count.


Sample Usage

$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French Flag

added 246 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139

PHP, 71 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 7800 5000 0100 0800 a455 00ff ffff  ..x.P......U....
0000020: 3541 ef3c 3f66 6f72 283b 3936 3030 3e24  5A.<?for(;9600>$
0000030: 693b 2965 6368 6f20 6368 7228 2469 2b2b  i;)echo chr($i++
0000040: 2f34 3025 3329 3b                        /40%3);
0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 7800 5000 0100 0800 a455 00ff ffff  ..x.P......U....
0000020: 3541 ef3c 3f66 6f72 283b 3936 3030 3e24  5A.<?for(;9600>$
0000030: 693b 2965 6368 6f20 6368 7228 2469 2b2b  i;)echo chr($i++
0000040: 2f34 3025 3329 3b                        /40%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000007800500001000800a45500ffffff3541ef3c3f666f72283b393630303e24693b296563686f206368722824692b2b2f34302533293b');

Requres PHP v5.5 or higher. I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (120 x 80), which should be piped to a file.


Sample Usage

$ xxd -r in.hex > france.php
$ php france.php > out.bmp
$ out.bmp
$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French Flag

PHP, 71 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 7800 5000 0100 0800 a455 00ff ffff  ..x.P......U....
0000020: 3541 ef3c 3f66 6f72 283b 3936 3030 3e24  5A.<?for(;9600>$
0000030: 693b 2965 6368 6f20 6368 7228 2469 2b2b  i;)echo chr($i++
0000040: 2f34 3025 3329 3b                        /40%3);

The above is a hexdump which may be reversed with xxd -r.

Requres PHP v5.5 or higher. I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (120 x 80), which should be piped to a file.


Sample Usage

$ xxd -r in.hex > france.php
$ php france.php > out.bmp
$ out.bmp

Output

French Flag

PHP, 71 bytes

0000000: 424d 0000 0000 0000 0000 2300 0000 0c00  BM........#.....
0000010: 0000 7800 5000 0100 0800 a455 00ff ffff  ..x.P......U....
0000020: 3541 ef3c 3f66 6f72 283b 3936 3030 3e24  5A.<?for(;9600>$
0000030: 693b 2965 6368 6f20 6368 7228 2469 2b2b  i;)echo chr($i++
0000040: 2f34 3025 3329 3b                        /40%3);

The above is a hexdump which may be reversed with xxd -r. Alternatively, it may also be generated with the following PHP script:

<?=hex2bin('424d0000000000000000230000000c0000007800500001000800a45500ffffff3541ef3c3f666f72283b393630303e24693b296563686f206368722824692b2b2f34302533293b');

I assume default settings, as they are without an .ini (you may disable your local .ini with the -n option). Produces a .bmp image (120 x 80), which should be piped to a file.


Sample Usage

$ xxd -r in.hex > france.php
$ php -n france.php > out.bmp
$ out.bmp

Output

French Flag

added 1 character in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139
Loading
added 322 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139
Loading
deleted 2 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139
Loading
added 9 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139
Loading
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139
Loading