3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); str_contains('hallo', 0);
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
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:
52.58 ms | 860 KiB | 4 Q