3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { ... if (!condition) { throw new CustomExceptionOne('not condition 1'); } if (!condition2) { throw new CustomExceptionTwo('not condition 2'); } $return = true; } catch (\Throwable $t) { // do with $t $return = false; } finally { return $return; }
Output for 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7
Parse error: syntax error, unexpected '...' (T_ELLIPSIS) in /in/ScRl3 on line 4
Process exited with code 255.

preferences:
152.83 ms | 1332 KiB | 6 Q