3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_url = "http://www.imdb.com/title/tt1840309/?ref_=hm_cht_t1"; function GetIMDBTitle($url) { $pass1 = explode("imdb.com/title/",$url); return $pass1[1]; } echo GetIMDBTitle(my_url); ?>
Output for 5.3.0 - 7.1.0
Notice: Use of undefined constant my_url - assumed 'my_url' in /in/K3Rmj on line 13 Notice: Undefined offset: 1 in /in/K3Rmj on line 9
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant my_url - assumed 'my_url' in /in/K3Rmj on line 13 Notice: Undefined offset: 1 in /in/K3Rmj on line 9