3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = bin2hex(random_bytes(32)); // SECRET function doSomething(string $secret) { throw new Exception("It failed :'("); } doSomething($secret);

preferences:
35.8 ms | 402 KiB | 5 Q