3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = 'string'; //echo $var[count($var) - 1]; echo count($var);
based on 0rN6d
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/dbo8n on line 5 1
Output for 5.3.21 - 7.1.10
1