3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=strpos( '&do-login=1', '', 'http://wpmu/account-2/?membership_id=543&do-logcin=1' ); var_dump($a);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught TypeError: strpos(): Argument #3 ($offset) must be of type int, string given in /in/92o5H:3 Stack trace: #0 /in/92o5H(3): strpos('&do-login=1', '', 'http://wpmu/acc...') #1 {main} thrown in /in/92o5H on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: strpos() expects parameter 3 to be int, string given in /in/92o5H on line 3 NULL
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33
Warning: strpos() expects parameter 3 to be integer, string given in /in/92o5H on line 3 NULL

preferences:
157.34 ms | 402 KiB | 183 Q