3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0;$i < 20; $i++){ echo strlen(rtrim(strtr(base64_encode(random_bytes(24)), '+/', '-_'), '=')); echo "\n"; }
based on SXiI1
Output for hhvm-3.15.4, 7.0.0 - 7.3.0beta1
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function random_bytes() in /in/Wt83I on line 3
Process exited with code 255.