3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_strpos('abc', 'a', -1));
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.32, 7.4.0 - 7.4.25, 8.0.0 - 8.0.12, 8.1rc1 - rc3
bool(false)
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
Warning: mb_strpos(): Offset not contained in string in /in/o1YNG on line 3 bool(false)

preferences:
52.25 ms | 461 KiB | 5 Q