@ 2017-12-07T16:25:25Z <?php
$data = openssl_random_pseudo_bytes(65536);
$params = array('level' => 6, 'window' => 15, 'memory' => 9);
$fp = fopen('php://memory', 'wb+');
$filter = stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE, $params);
fputs($fp, $data);
stream_filter_remove($filter);
rewind($fp);
echo substr(bin2hex($streamA = stream_get_contents($fp)), 0, 32) . "\n";
echo substr(bin2hex($streamB = gzcompress($data)), 0, 32) . "\n";
var_dump($streamA === $streamB);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.33 , 8.2.0 - 8.2.29 , 8.3.0 - 8.3.26 , 8.4.1 - 8.4.13 Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/K1f3G:3
Stack trace:
#0 {main}
thrown in /in/K1f3G on line 3
Process exited with code 255 . Output for 7.1.12 789c001180ee7f9c3fc35f12006ffcab
789c001180ee7f9c3fc35f12006ffcab
bool(true)
Output for 7.1.11 789c001180ee7fd2e9abf32bcf0c1d34
789c001180ee7fd2e9abf32bcf0c1d34
bool(true)
Output for 7.1.10 789c000980f67f17aa6ecb11c3c8fa83
789c000980f67f17aa6ecb11c3c8fa83
bool(true)
Output for 7.1.9 789c000b80f47fc72b5d8c6977ff0c4a
789c000b80f47fc72b5d8c6977ff0c4a
bool(true)
Output for 7.1.8 789c001780e87f8b9c8e95e82540e2dd
789c001780e87f8b9c8e95e82540e2dd
bool(true)
Output for 7.1.7 789c000980f67ff78a662da026e3fb4d
789c000980f67ff78a662da026e3fb4d
bool(true)
Output for 7.1.6 789c001380ec7f4769982f89da2803eb
789c001380ec7f4769982f89da2803eb
bool(true)
Output for 7.1.5 789c001380ec7fe6b030d331f9c54832
789c001380ec7fe6b030d331f9c54832
bool(true)
Output for 7.1.4 789c000a80f57f169874d8b55f4e55f9
789c000a80f57f169874d8b55f4e55f9
bool(true)
Output for 7.1.3 789c001580ea7f05c21cfd91f5d0e52b
789c001580ea7f05c21cfd91f5d0e52b
bool(true)
Output for 7.1.2 789c000b80f47f80818501eca6969d5c
789c000b80f47f80818501eca6969d5c
bool(true)
Output for 7.1.1 789c001180ee7f01e7d6d6c7828d9cf1
789c001180ee7f01e7d6d6c7828d9cf1
bool(true)
Output for 7.1.0 789c000d80f27f09fa39a286c0915c0f
789c000d80f27f09fa39a286c0915c0f
bool(true)
preferences:dark mode live preview ace vim emacs key bindings
146.12 ms | 425 KiB | 5 Q