3v4l.org

run code in 300+ PHP versions simultaneously
<?php str_repeat('bla', -2);
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught ValueError: str_repeat(): Argument #2 ($times) must be greater than or equal to 0 in /in/XRaOj:3 Stack trace: #0 /in/XRaOj(3): str_repeat('bla', -2) #1 {main} thrown in /in/XRaOj on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: str_repeat(): Second argument has to be greater than or equal to 0 in /in/XRaOj on line 3

preferences:
100.87 ms | 401 KiB | 123 Q