3v4l.org

run code in 500+ PHP versions simultaneously
<?php strpos('string', 'g', 7);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.35, 8.3.0 - 8.3.36, 8.4.1 - 8.4.27, 8.5.0 - 8.5.12
Fatal error: Uncaught ValueError: strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in /in/QGdRO:3 Stack trace: #0 /in/QGdRO(3): strpos('string', 'g', 7) #1 {main} thrown in /in/QGdRO on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: strpos(): Offset not contained in string in /in/QGdRO on line 3

preferences:
39.13 ms | 1511 KiB | 10 Q