3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $reset_Token = "mn:hanspeter;dt:342432;"; $mail_name = getStringBetween($reset_Token,"mn:",";"); echo $mailname; function getStringBetween($str,$from,$to) { $sub = substr($str, strpos($str,$from)+strlen($from),strlen($str)); return substr($sub,0,strpos($sub,$to)); }
based on 0dv6s
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: mailname in /in/98Vms on line 4
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: mailname in /in/98Vms on line 4