3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'http://www.azlyrics.com/a/abba.html'; $pos = strrpos($str, '.html'); $get = substr($str, 0, $pos); echo $get; $pos2 = strrchar($get, '/'); $get2 = substr($get, $pos2, '-0'); echo $get2;
based on lQOZg
Output for 7.0.0 - 7.3.0beta1
http://www.azlyrics.com/a/abba Fatal error: Uncaught Error: Call to undefined function strrchar() in /in/NVBMb:9 Stack trace: #0 {main} thrown in /in/NVBMb on line 9
Process exited with code 255.
Output for 5.6.0 - 5.6.29
http://www.azlyrics.com/a/abba Fatal error: Call to undefined function strrchar() in /in/NVBMb on line 9
Process exited with code 255.