3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bytes = openssl_random_pseudo_bytes(100); echo strlen($text); # počet bytů echo "\n"; echo mb_strlen($text); # počet znaků echo "\n";
based on F91U1
Output for 7.0.0 - 7.3.0
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/3FVCJ:3 Stack trace: #0 {main} thrown in /in/3FVCJ on line 3
Process exited with code 255.
Output for 5.3.21 - 5.4.14, 5.5.0 - 5.6.38
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/3FVCJ on line 3
Process exited with code 255.
Output for 5.4.15 - 5.4.45
Notice: Undefined variable: text in /in/3FVCJ on line 5 0 Notice: Undefined variable: text in /in/3FVCJ on line 7 0