3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _123MoviesSource($URL){ $options = Array( CURLOPT_FOLLOWLOCATION => TRUE, CURLOPT_CONNECTTIMEOUT => 60, CURLOPT_HEADER => FALSE, CURLOPT_REFERER => 'http://123movies.to/', CURLOPT_USERAGENT => "Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0", //User Agent CURLOPT_URL => $URL ); $ch = curl_init($URL); curl_setopt_array($ch, $options); $data = curl_exec($ch); curl_close($ch); preg_match_all('@/<iframe .* src="(.*?)" .*/@', $data, $matches); print_r($matches); } $scrData = _123MoviesSource("http://123movies.to/film/the-walking-dead-season-2-16605/watching.html");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8r1u
function name:  (null)
number of ops:  5
compiled vars:  !0 = $scrData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               '_123moviessource'
          1        SEND_VAL                                                 'http%3A%2F%2F123movies.to%2Ffilm%2Fthe-walking-dead-season-2-16605%2Fwatching.html'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Function _123moviessource:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8r1u
function name:  _123MoviesSource
number of ops:  38
compiled vars:  !0 = $URL, !1 = $options, !2 = $ch, !3 = $data, !4 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        FETCH_CONSTANT                                   ~5      'CURLOPT_FOLLOWLOCATION'
          2        INIT_ARRAY                                       ~6      <true>, ~5
    6     3        FETCH_CONSTANT                                   ~7      'CURLOPT_CONNECTTIMEOUT'
          4        ADD_ARRAY_ELEMENT                                ~6      60, ~7
    7     5        FETCH_CONSTANT                                   ~8      'CURLOPT_HEADER'
    5     6        ADD_ARRAY_ELEMENT                                ~6      <false>, ~8
    8     7        FETCH_CONSTANT                                   ~9      'CURLOPT_REFERER'
          8        ADD_ARRAY_ELEMENT                                ~6      'http%3A%2F%2F123movies.to%2F', ~9
    9     9        FETCH_CONSTANT                                   ~10     'CURLOPT_USERAGENT'
         10        ADD_ARRAY_ELEMENT                                ~6      'Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A21.0%29+Gecko%2F20100101+Firefox%2F21.0', ~10
   10    11        FETCH_CONSTANT                                   ~11     'CURLOPT_URL'
         12        ADD_ARRAY_ELEMENT                                ~6      !0, ~11
    4    13        ASSIGN                                                   !1, ~6
   12    14        INIT_FCALL_BY_NAME                                       'curl_init'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $13     
         17        ASSIGN                                                   !2, $13
   13    18        INIT_FCALL_BY_NAME                                       'curl_setopt_array'
         19        SEND_VAR_EX                                              !2
         20        SEND_VAR_EX                                              !1
         21        DO_FCALL                                      0          
   14    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !2
         24        DO_FCALL                                      0  $16     
         25        ASSIGN                                                   !3, $16
   15    26        INIT_FCALL_BY_NAME                                       'curl_close'
         27        SEND_VAR_EX                                              !2
         28        DO_FCALL                                      0          
   17    29        INIT_FCALL                                               'preg_match_all'
         30        SEND_VAL                                                 '%40%2F%3Ciframe+.%2A+src%3D%22%28.%2A%3F%29%22+.%2A%2F%40'
         31        SEND_VAR                                                 !3
         32        SEND_REF                                                 !4
         33        DO_ICALL                                                 
   19    34        INIT_FCALL                                               'print_r'
         35        SEND_VAR                                                 !4
         36        DO_ICALL                                                 
   21    37      > RETURN                                                   null

End of function _123moviessource

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.42 ms | 1407 KiB | 18 Q