3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '//home/foo:/bin/sh'; $i = count($str); $pos = strrpos($str, '/'); echo substr($str, 0, $i - $pos);
based on 64au4
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/oCUUN on line 4 //ho
Output for 5.3.21 - 7.1.10
//ho