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:
28.43 ms | 405 KiB | 5 Q