3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_url = "http://www.imdb.com/title/tt1840309/?ref_=hm_cht_t1"; function GetIMDBTitle($url) { $pass1=array(); $pass1 = explode("imdb.com/title/",$url); print_r($pass1); return $pass1[1]; } echo GetIMDBTitle(my_url); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zub0Q
function name:  (null)
number of ops:  7
compiled vars:  !0 = $my_url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt1840309%2F%3Fref_%3Dhm_cht_t1'
   15     1        INIT_FCALL                                               'getimdbtitle'
          2        FETCH_CONSTANT                                   ~2      'my_url'
          3        SEND_VAL                                                 ~2
          4        DO_FCALL                                      0  $3      
          5        ECHO                                                     $3
   17     6      > RETURN                                                   1

Function getimdbtitle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zub0Q
function name:  GetIMDBTitle
number of ops:  13
compiled vars:  !0 = $url, !1 = $pass1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN                                                   !1, <array>
    9     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 'imdb.com%2Ftitle%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   10     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   11    10        FETCH_DIM_R                                      ~6      !1, 1
         11      > RETURN                                                   ~6
   12    12*     > RETURN                                                   null

End of function getimdbtitle

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.45 ms | 1397 KiB | 18 Q