3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo bin2hex(random_bytes(static::KEY_LENGTH)) . "\n"; echo strlen(bin2hex(random_bytes(static::KEY_LENGTH))) . "\n";
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Fatal error: Uncaught Error: Cannot access static:: when no class scope is active in /in/l0NFA:3 Stack trace: #0 {main} thrown in /in/l0NFA on line 3
Process exited with code 255.

preferences:
86.98 ms | 402 KiB | 81 Q