3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); str_contains('hallo', 0);
Output for 8.1.32, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Fatal error: Uncaught TypeError: str_contains(): Argument #2 ($needle) must be of type string, int given in /in/CHDVW:3 Stack trace: #0 /in/CHDVW(3): str_contains('hallo', 0) #1 {main} thrown in /in/CHDVW on line 3
Process exited with code 255.

preferences:
62.24 ms | 406 KiB | 5 Q