3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(base64_encode(random_bytes(9/2)));
Output for 7.4.1
string(8) "5yuwdA=="
Output for 7.4.0
string(8) "y6h6ag=="
Output for 7.3.13
string(8) "1B7eig=="
Output for 7.3.12
string(8) "YeL4ew=="
Output for 7.3.11
string(8) "VLRjeg=="
Output for 7.3.10
string(8) "3BA1Cg=="
Output for 7.3.9
string(8) "VqmZaw=="
Output for 7.3.8
string(8) "ZDTfPg=="
Output for 7.3.7
string(8) "/miuyA=="
Output for 7.3.6
string(8) "GtEsog=="
Output for 7.3.5
string(8) "pGvXjQ=="
Output for 7.3.4
string(8) "ImNA6w=="
Output for 7.3.3
string(8) "egfdMQ=="
Output for 7.3.2
string(8) "5lxWWA=="
Output for 7.3.1
string(8) "hWqNwg=="
Output for 7.3.0
string(8) "EdqyfA=="
Output for 7.2.26
string(8) "n0i0zg=="
Output for 7.2.25
string(8) "CIifng=="
Output for 7.2.24
string(8) "18qKFA=="
Output for 7.2.23
string(8) "dmN05g=="
Output for 7.2.22
string(8) "p6cThw=="
Output for 7.2.21
string(8) "N0UWfQ=="
Output for 7.2.20
string(8) "hsONWQ=="
Output for 7.2.19
string(8) "BbOSPg=="
Output for 7.2.18
string(8) "RKZzOQ=="
Output for 7.2.17
string(8) "MCg9sg=="
Output for 7.2.16
string(8) "ZMYrfw=="
Output for 7.2.15
string(8) "PGxFTA=="
Output for 7.2.14
string(8) "eFM0Qw=="
Output for 7.2.13
string(8) "GLXy2w=="
Output for 7.2.12
string(8) "pvLtfw=="
Output for 7.2.11
string(8) "lzVzrw=="
Output for 7.2.10
string(8) "Ic6cLg=="
Output for 7.2.9
string(8) "VrD99g=="
Output for 7.2.8
string(8) "J90zpQ=="
Output for 7.2.7
string(8) "qNewng=="
Output for 7.2.6
string(8) "Rwwq9w=="
Output for 7.2.5
string(8) "X6p82A=="
Output for 7.2.4
string(8) "wYTIvw=="
Output for 7.2.3
string(8) "q83uJA=="
Output for 7.2.2
string(8) "U6gLvQ=="
Output for 7.2.1
string(8) "1zo5jQ=="
Output for 7.2.0
string(8) "ketL4A=="
Output for 7.1.33
string(8) "CRTLbA=="
Output for 7.1.32
string(8) "E2eS/A=="
Output for 7.1.31
string(8) "FgQrLw=="
Output for 7.1.30
string(8) "JvnVNA=="
Output for 7.1.29
string(8) "B4R5pw=="
Output for 7.1.28
string(8) "nmyuFg=="
Output for 7.1.27
string(8) "m20Pqw=="
Output for 7.1.26
string(8) "6DUbjA=="
Output for 7.1.25
string(8) "LlEjMg=="
Output for 7.1.24
string(8) "qzniWQ=="
Output for 7.1.23
string(8) "iY2Ghw=="
Output for 7.1.22
string(8) "LT5TKg=="
Output for 7.1.21
string(8) "dGxAQg=="
Output for 7.1.20
string(8) "x+cP8Q=="
Output for 7.1.19
string(8) "a1KiVA=="
Output for 7.1.18
string(8) "p1UgAA=="
Output for 7.1.17
string(8) "cPBEFg=="
Output for 7.1.16
string(8) "4lESIw=="
Output for 7.1.15
string(8) "B0AbtQ=="
Output for 7.1.14
string(8) "/EwuLQ=="
Output for 7.1.13
string(8) "iwHvTA=="
Output for 7.1.12
string(8) "OB9D3A=="
Output for 7.1.11
string(8) "IVBZBA=="
Output for 7.1.10
string(8) "43dNwA=="
Output for 7.1.9
string(8) "1TVVVQ=="
Output for 7.1.8
string(8) "MZmw5w=="
Output for 7.1.7
string(8) "WmafCw=="
Output for 7.1.6
string(8) "93qDhg=="
Output for 7.1.5
string(8) "8ebzPQ=="
Output for 7.1.4
string(8) "/4VyqQ=="
Output for 7.1.3
string(8) "DzPogw=="
Output for 7.1.2
string(8) "xXysiw=="
Output for 7.1.1
string(8) "dLgeVg=="
Output for 7.1.0
string(8) "NNCiHQ=="
Output for 7.0.33
string(8) "s4BJDQ=="
Output for 7.0.32
string(8) "pP/wow=="
Output for 7.0.31
string(8) "0jXThQ=="
Output for 7.0.30
string(8) "CYtZgg=="
Output for 7.0.29
string(8) "HVK98g=="
Output for 7.0.28
string(8) "KBapXw=="
Output for 7.0.27
string(8) "oi4RIw=="
Output for 7.0.26
string(8) "VHJ4lg=="
Output for 7.0.25
string(8) "cV7wqg=="
Output for 7.0.24
string(8) "kFHcCw=="
Output for 7.0.23
string(8) "3Ra/dg=="
Output for 7.0.22
string(8) "gfw5zA=="
Output for 7.0.21
string(8) "+sx2Nw=="
Output for 7.0.20
string(8) "GBZibA=="
Output for 7.0.19
string(8) "58N6Wg=="
Output for 7.0.18
string(8) "aRaL3A=="
Output for 7.0.17
string(8) "h9aYUw=="
Output for 7.0.16
string(8) "FvgQlQ=="
Output for 7.0.15
string(8) "J/pJYg=="
Output for 7.0.14
string(8) "RGAkng=="
Output for 7.0.13
string(8) "suvI8Q=="
Output for 7.0.12
string(8) "Hm7nGg=="
Output for 7.0.11
string(8) "BVHgow=="
Output for 7.0.10
string(8) "iQ7Hog=="
Output for 7.0.9
string(8) "u6f58w=="
Output for 7.0.8
string(8) "qJgVNg=="
Output for 7.0.7
string(8) "Jv3OyQ=="
Output for 7.0.6
string(8) "Yb6hpA=="
Output for 7.0.5
string(8) "meZ8cQ=="
Output for 7.0.4
string(8) "tktpNw=="
Output for 7.0.3
string(8) "Sw0hsw=="
Output for 7.0.2
string(8) "Clv75A=="
Output for 7.0.1
string(8) "9Yc16w=="
Output for 7.0.0
string(8) "0fMOEg=="
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function random_bytes() in /in/uajOd on line 2
Process exited with code 255.

preferences:
163.43 ms | 402 KiB | 196 Q