3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $current = null; $count = 0; //while ($current !== 0) { $count++; $bytes = openssl_random_pseudo_bytes(1); $long = unpack("S", $bytes); var_dump($long); //}
based on Apk6t
Output for 5.4.15 - 7.1.0
Warning: unpack(): Type S: not enough input, need 2, have 1 in /in/C76AT on line 10 bool(false)
Output for 5.0.0 - 5.0.5, 5.1.1, 5.1.3 - 5.1.4, 5.1.6 - 5.4.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/C76AT on line 9
Process exited with code 255.
Output for 5.1.2, 5.1.5
//} Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/C76AT on line 9
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/C76AT on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/C76AT on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/C76AT on line 9
Process exited with code 255.
Output for 4.4.2
//} Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/C76AT on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/C76AT on line 9