3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo generateKey(); function generateKey() { return base64encode(randBuffer(48)); } function base64encode($buf) { $enc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; return $enc; } function randBuffer($n) { return openssl_random_pseudo_bytes($n); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/XaBYd:15 Stack trace: #0 /in/XaBYd(6): randBuffer(48) #1 /in/XaBYd(3): generateKey() #2 {main} thrown in /in/XaBYd on line 15
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.7 ms | 401 KiB | 8 Q