3v4l.org

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