3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = 'something'; echo strpos($word, 0, -1); // g? echo strpos($word, 0, 1); // s?

preferences:
38.17 ms | 402 KiB | 5 Q