3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(base64_encode(random_bytes(10)));
Output for 7.3.1
string(16) "e+HXbgpJyF4GOg=="
Output for 7.3.0
string(16) "lciwMFv/oEnq6w=="
Output for 7.2.13
string(16) "jysnwh3hkLMfcg=="
Output for 7.2.12
string(16) "VDkoYHQEErYHiQ=="
Output for 7.2.11
string(16) "GMMSOKPtQa5R0A=="
Output for 7.2.10
string(16) "isgoiQkZaqMjpw=="
Output for 7.2.9
string(16) "MQ7hOxNk8NDN8g=="
Output for 7.2.8
string(16) "qGVyqyZWgsk10Q=="
Output for 7.2.7
string(16) "vtxqUWS+Uubx3g=="
Output for 7.2.6
string(16) "1oOTWlKAB7GabA=="
Output for 7.2.5
string(16) "/QUHNtoWVFMPHA=="
Output for 7.2.4
string(16) "6Ba66fn33jszRg=="
Output for 7.2.3
string(16) "hLJc1nW3fo4a6g=="
Output for 7.2.2
string(16) "BKniEnmkz7Kcqg=="
Output for 7.2.1
string(16) "Alg3O9D5FoFpoQ=="
Output for 7.2.0
string(16) "lfibkE0CBVXlGw=="
Output for 7.1.25
string(16) "3yEstSMcZYRLwQ=="
Output for 7.1.10
string(16) "tLISGnrQOUlGgg=="
Output for 7.1.7
string(16) "5k3rMPqRx3fDCg=="
Output for 7.1.6
string(16) "umsnwQOeEmrB4g=="
Output for 7.1.5
string(16) "JTk7EgDnIEU6Dg=="
Output for 7.1.0
string(16) "IkAq2Uc/Rxb6iA=="
Output for 7.0.20
string(16) "ZdKRTx0Ld48bSQ=="
Output for 7.0.6
string(16) "57ugvR0Lw1lA+A=="
Output for 7.0.5
string(16) "emsTYgmLp9iR9A=="
Output for 7.0.4
string(16) "K0Fy7mISBVGWug=="
Output for 7.0.3
string(16) "hsBd4bA/1eeXQQ=="
Output for 7.0.2
string(16) "nYZ3xad7Y+CT7g=="
Output for 7.0.1
string(16) "60ANkTx1xpbAyw=="
Output for 7.0.0
string(16) "hklxhTX7tzu56Q=="
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/p74tT on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: random_bytes() in /in/p74tT on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: random_bytes() in /in/p74tT on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: random_bytes() in /in/p74tT on line 2

preferences:
145.45 ms | 401 KiB | 190 Q