3v4l.org

run code in 300+ PHP versions simultaneously
<?php random_bytes();
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7
Fatal error: Uncaught ArgumentCountError: random_bytes() expects exactly 1 parameter, 0 given in /in/DEpXv:3 Stack trace: #0 /in/DEpXv(3): random_bytes() #1 {main} thrown in /in/DEpXv on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.33
Fatal error: Uncaught TypeError: random_bytes() expects exactly 1 parameter, 0 given in /in/DEpXv:3 Stack trace: #0 /in/DEpXv(3): random_bytes() #1 {main} thrown in /in/DEpXv on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function random_bytes() in /in/DEpXv on line 3
Process exited with code 255.

preferences:
194.33 ms | 402 KiB | 213 Q