3v4l.org

run code in 300+ PHP versions simultaneously
<?php $token = bin2hex(random_bytes(4));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/tm0L7 on line 3
Process exited with code 255.

preferences:
82.94 ms | 402 KiB | 48 Q