3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = array_map(function() { return openssl_random_pseudo_bytes(524288); }, range(1, 500)); $before = microtime(1); array_walk_recursive($_GET, function($item) { return stripslashes($item); }); echo microtime(1) - $before . "\n";
Output for 7.0.20, 7.1.5 - 7.1.7
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 528384 bytes) in /in/qRfvf on line 4
Process exited with code 255.
Output for 5.4.15 - 5.4.22
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 524289 bytes) in /in/qRfvf on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/qRfvf on line 4
Process exited with code 255.

preferences:
77.51 ms | 402 KiB | 60 Q