3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0;$i < 20; $i++){ echo strlen(rtrim(strtr(base64_encode(random_bytes(24)), '+/', '-_'), '=')); }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
3232323232323232323232323232323232323232
Output for 5.6.0 - 5.6.40
Fatal error: Call to undefined function random_bytes() in /in/SXiI1 on line 3
Process exited with code 255.

preferences:
140.35 ms | 401 KiB | 157 Q