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(2); $long = unpack("S", $bytes); var_dump($long); //}
based on C76AT
Output for 7.1.0
array(1) { [1]=> int(61260) }
Output for 7.0.14
array(1) { [1]=> int(47249) }
Output for 7.0.11
array(1) { [1]=> int(56890) }
Output for 7.0.10
array(1) { [1]=> int(58579) }
Output for 7.0.9
array(1) { [1]=> int(63924) }
Output for 7.0.8
array(1) { [1]=> int(60136) }
Output for 7.0.7
array(1) { [1]=> int(43246) }
Output for 7.0.6
array(1) { [1]=> int(11726) }
Output for 7.0.5
array(1) { [1]=> int(31180) }
Output for 7.0.4
array(1) { [1]=> int(35859) }
Output for 7.0.3
array(1) { [1]=> int(50411) }
Output for 7.0.2
array(1) { [1]=> int(4359) }
Output for 7.0.1
array(1) { [1]=> int(64965) }
Output for 7.0.0
array(1) { [1]=> int(12403) }
Output for hhvm-3.14.4
array(1) { [1]=> int(21277) }
Output for hhvm-3.13.2
array(1) { [1]=> int(59952) }
Output for hhvm-3.12.0
array(1) { [1]=> int(50672) }
Output for hhvm-3.10.0
array(1) { [1]=> int(16086) }
Output for 5.6.28
array(1) { [1]=> int(47139) }
Output for 5.6.26
array(1) { [1]=> int(4416) }
Output for 5.6.25
array(1) { [1]=> int(9840) }
Output for 5.6.24
array(1) { [1]=> int(41731) }
Output for 5.6.23
array(1) { [1]=> int(21628) }
Output for 5.6.22
array(1) { [1]=> int(13998) }
Output for 5.6.21
array(1) { [1]=> int(57680) }
Output for 5.6.20
array(1) { [1]=> int(7037) }
Output for 5.6.19
array(1) { [1]=> int(50480) }
Output for 5.6.18
array(1) { [1]=> int(34721) }
Output for 5.6.17
array(1) { [1]=> int(7483) }
Output for 5.6.16
array(1) { [1]=> int(18594) }
Output for 5.6.15
array(1) { [1]=> int(23538) }
Output for 5.6.14
array(1) { [1]=> int(37658) }
Output for 5.6.13
array(1) { [1]=> int(38662) }
Output for 5.6.12
array(1) { [1]=> int(30579) }
Output for 5.6.11
array(1) { [1]=> int(34053) }
Output for 5.6.10
array(1) { [1]=> int(63373) }
Output for 5.6.9
array(1) { [1]=> int(48841) }
Output for 5.6.8
array(1) { [1]=> int(10202) }
Output for 5.6.7
array(1) { [1]=> int(36465) }
Output for 5.6.6
array(1) { [1]=> int(19328) }
Output for 5.6.5
array(1) { [1]=> int(54794) }
Output for 5.6.4
array(1) { [1]=> int(51548) }
Output for 5.6.3
array(1) { [1]=> int(12152) }
Output for 5.6.2
array(1) { [1]=> int(28387) }
Output for 5.6.1
array(1) { [1]=> int(21918) }
Output for 5.6.0
array(1) { [1]=> int(50806) }
Output for 5.5.38
array(1) { [1]=> int(24480) }
Output for 5.5.37
array(1) { [1]=> int(13905) }
Output for 5.5.36
array(1) { [1]=> int(50730) }
Output for 5.5.35
array(1) { [1]=> int(41481) }
Output for 5.5.34
array(1) { [1]=> int(17548) }
Output for 5.5.33
array(1) { [1]=> int(47050) }
Output for 5.5.32
array(1) { [1]=> int(45524) }
Output for 5.5.31
array(1) { [1]=> int(17038) }
Output for 5.5.30
array(1) { [1]=> int(4528) }
Output for 5.5.29
array(1) { [1]=> int(20173) }
Output for 5.5.28
array(1) { [1]=> int(37863) }
Output for 5.5.27
array(1) { [1]=> int(62812) }
Output for 5.5.26
array(1) { [1]=> int(65386) }
Output for 5.5.25
array(1) { [1]=> int(42623) }
Output for 5.5.24
array(1) { [1]=> int(55998) }
Output for 5.4.17, 5.5.23
array(1) { [1]=> int(62807) }
Output for 5.5.22
array(1) { [1]=> int(61105) }
Output for 5.5.21
array(1) { [1]=> int(14714) }
Output for 5.5.20
array(1) { [1]=> int(29340) }
Output for 5.5.19
array(1) { [1]=> int(34814) }
Output for 5.5.18
array(1) { [1]=> int(21591) }
Output for 5.5.16
array(1) { [1]=> int(36980) }
Output for 5.5.15
array(1) { [1]=> int(22400) }
Output for 5.5.14
array(1) { [1]=> int(58462) }
Output for 5.5.13
array(1) { [1]=> int(55258) }
Output for 5.5.12
array(1) { [1]=> int(30546) }
Output for 5.5.11
array(1) { [1]=> int(17651) }
Output for 5.5.10
array(1) { [1]=> int(29781) }
Output for 5.5.9
array(1) { [1]=> int(48304) }
Output for 5.5.8
array(1) { [1]=> int(12536) }
Output for 5.5.7
array(1) { [1]=> int(17924) }
Output for 5.5.6
array(1) { [1]=> int(36706) }
Output for 5.5.5
array(1) { [1]=> int(38036) }
Output for 5.5.4
array(1) { [1]=> int(5197) }
Output for 5.5.3
array(1) { [1]=> int(28700) }
Output for 5.5.2
array(1) { [1]=> int(31040) }
Output for 5.5.1
array(1) { [1]=> int(63612) }
Output for 5.5.0
array(1) { [1]=> int(60102) }
Output for 5.4.45
array(1) { [1]=> int(6239) }
Output for 5.4.44
array(1) { [1]=> int(43997) }
Output for 5.4.43
array(1) { [1]=> int(13953) }
Output for 5.4.42
array(1) { [1]=> int(31078) }
Output for 5.4.41
array(1) { [1]=> int(39006) }
Output for 5.4.40
array(1) { [1]=> int(15428) }
Output for 5.4.39
array(1) { [1]=> int(38637) }
Output for 5.4.38
array(1) { [1]=> int(43824) }
Output for 5.4.37
array(1) { [1]=> int(52433) }
Output for 5.4.36
array(1) { [1]=> int(16988) }
Output for 5.4.35
array(1) { [1]=> int(25579) }
Output for 5.4.34
array(1) { [1]=> int(60790) }
Output for 5.4.32
array(1) { [1]=> int(40065) }
Output for 5.4.31
array(1) { [1]=> int(46443) }
Output for 5.4.30
array(1) { [1]=> int(25060) }
Output for 5.4.29
array(1) { [1]=> int(41688) }
Output for 5.4.28
array(1) { [1]=> int(54142) }
Output for 5.4.27
array(1) { [1]=> int(36338) }
Output for 5.4.26
array(1) { [1]=> int(1789) }
Output for 5.4.25
array(1) { [1]=> int(7224) }
Output for 5.4.24
array(1) { [1]=> int(47170) }
Output for 5.4.23
array(1) { [1]=> int(21325) }
Output for 5.4.22
array(1) { [1]=> int(8483) }
Output for 5.4.21
array(1) { [1]=> int(10320) }
Output for 5.4.20
array(1) { [1]=> int(2863) }
Output for 5.4.19
array(1) { [1]=> int(31924) }
Output for 5.4.18
array(1) { [1]=> int(22775) }
Output for 5.4.16
array(1) { [1]=> int(32127) }
Output for 5.4.15
array(1) { [1]=> int(46536) }
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/av7CW 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/av7CW 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/av7CW 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/av7CW 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/av7CW 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/av7CW 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/av7CW on line 9