3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = base64_encode(random_bytes(10)); // about 14 chars
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/GdnNX on line 2
Process exited with code 255.

preferences:
77.7 ms | 402 KiB | 46 Q