3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '\Jacopo\Includes\Models\Site'; echo substr($string, 0, strrpos(get_class($string), '\\'));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: get_class() expects parameter 1 to be object, string given in /in/U1sLP on line 4
Output for 4.3.0 - 5.2.17, hhvm-3.10.0 - 3.12.0