3v4l.org

run code in 200+ PHP versions simultaneously
<?php $s = 'MAy'; $p = 'MAy'; $t = strpos($s, $p) === 0 ? substr($s, strlen($p)) : $s; var_dump($t);
Output for 7.1.25 - 7.4.0rc2
string(0) ""