3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(1,2,3,4,5,6,7,8,9); usort($array, function ($a, $b) { return false; }); echo pack("L*", openssl_random_pseudo_bytes(1));
Output for 5.4.15 - 5.5.3, 5.5.5 - 5.5.16, 5.5.19 - 5.5.36, 5.5.38 - 5.6.13, 5.6.15 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.1, 7.0.3 - 7.1.0
Output for 5.5.4, 7.0.2
Output for 7.0.0

Output for 5.6.14

Output for 5.5.37

Output for 5.5.18

Output for 5.3.0 - 5.4.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/DQbSC on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/DQbSC on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/DQbSC on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/DQbSC on line 4
Process exited with code 255.