3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = random_bytes(2048); for($u = 0; $u < 100; ++$u){ $result = str_repeat("\x00", 2048); $i = 0; for($x = 0; $x < 8; ++$x){ for($z = 0; $z < 16; ++$z){ $zx = (($z << 3) | $x); for($y = 0; $y < 8; ++$y){ $j = (($y << 8) | $zx); $j80 = ($j | 0x80); $i1 = ord($array{$j}); $i2 = ord($array{$j80}); $result{$i} = chr(($i2 << 4) | ($i1 & 0x0f)); $result{$i | 0x80} = chr(($i1 >> 4) | ($i2 & 0xf0)); $i++; } } $i += 128; } }
Output for hhvm-3.15.4, 7.0.0 - 7.3.1
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function random_bytes() in /in/o6EN0 on line 3
Process exited with code 255.