3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "Line 1\nLine 2\nLine 3"; $last = substr(strrchr($text, 10), 1 ); echo $last;
Output for 7.3.0beta1 - 7.3.0rc3
Deprecated: strrchr(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /in/iOQa6 on line 3 Line 3
Output for 4.3.0 - 7.3.0alpha1
Line 3