3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strlen(rtrim(strtr(base64_encode(random_bytes(26)), '+/', '-_'), '='));
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
35
Output for 5.6.38
Fatal error: Call to undefined function random_bytes() in /in/kNvgl on line 2
Process exited with code 255.

preferences:
94.06 ms | 401 KiB | 111 Q