3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aaa = "1234567890qwertyuiopsdflkjwerouioiuweewjkee"; $bbb = "1234567890qwertyuiop"; if (strpos($aaa, $bbb) === 0) { echo 'Same'; } else echo 'Not same';

preferences:
33.06 ms | 402 KiB | 5 Q