3v4l.org

run code in 300+ PHP versions simultaneously
<?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); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G6mvN
function name:  (null)
number of ops:  8
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'
    6     1        ECHO                                                     'fuck'
   18     2        INIT_FCALL                                               'getimdbtitle'
          3        FETCH_CONSTANT                                   ~2      'my_url'
          4        SEND_VAL                                                 ~2
          5        DO_FCALL                                      0  $3      
          6        ECHO                                                     $3
   20     7      > RETURN                                                   1

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

End of function getimdbtitle

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.87 ms | 1398 KiB | 18 Q