3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $to = substr('"hello%20how%20are%20you%20bn"',1,-1); $lang = substr($to,-2); $txt = substr($to,0,count($to)-4); echo($txt); echo("!!!"); echo($lang); ?>
Output for 7.2.0 - 7.2.6
Warning: count(): Parameter must be an array or an object that implements Countable in /in/V8Q7C on line 4 hello%20how%20are%20you%2!!!bn
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.1.20
hello%20how%20are%20you%2!!!bn