3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "ciao mondo - Note: addio"; preg_match("/.*-\sNote:\s(.+)/", $a, $res); $val = strpos($a, "- Note: "); $len = strlen($a); if ($len > $val +1) { echo " SI <br> $len > $val"; } var_dump($res);
based on IhXk4
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
SI <br> 24 > 11array(2) { [0]=> string(19) "mondo - Note: addio" [1]=> string(5) "addio" }