3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '\Jacopo\Includes\Models\Site'; echo substr($string, 0, strrpos(get_class($string), '\\'));
Output for 5.3.0 - 7.1.7
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