3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n = 12; echo base64_encode(strong_random_bytes(intval(ceil($n * 3 / 4)))); echo substr(str_replace(['/', '+', '='], ['', '', ''], base64_encode(strong_random_bytes($n))), 0, $n);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function strong_random_bytes() in /in/BFMLW:5 Stack trace: #0 {main} thrown in /in/BFMLW on line 5
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function strong_random_bytes() in /in/BFMLW on line 5
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/BFMLW on line 6
Process exited with code 255.