3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = '&lt;t&gt;'; var_dump(substr($s, strlen($s - 4), 4) === '&gt;'); var_dump(substr($s, strlen($s - 4), 4));
Output for 7.1.0
Warning: A non-numeric value encountered in /in/ce3Ql on line 3 bool(false) Warning: A non-numeric value encountered in /in/ce3Ql on line 4 string(4) "t;t&"
Output for 4.3.0 - 7.0.14
bool(false) string(4) "t;t&"