3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str1 = 'football'; $str2 = 'footboll'; $strPos = strspn($str1 , $str2); echo $str1[$strPos].' vs '. $str2[$strPos]; ?>
Output for 4.3.2 - 7.1.0
a vs o
Output for 4.3.0 - 4.3.1
Notice: Uninitialized string offset: 8 in /in/fkYZ4 on line 5 Notice: Uninitialized string offset: 8 in /in/fkYZ4 on line 5 vs