3v4l.org

run code in 300+ PHP versions simultaneously
<?php $course_link="http://m.uploadedit.com/ba3s/1479459820969.txt";//input $data=file_get_contents($course_link); preg_match_all('@href="https://www.wikiart.org/en/salvador-dal[[:print:]]+?"@', $data, $video_links); $file = 'links.txt'; $current = file_get_contents($file); foreach ($video_links[0] as $key=>$link){ $videopage_link=substr($link,6,-1); if ((strlen($videopage_link) <= 41)||($key <4)||($videopage_link==$redun)) { // skip even members continue; } $redun=$videopage_link; // echo "\n".$key.$videopage_link."\t\t\t\t"; $data=file_get_contents($videopage_link); preg_match_all('@<img itemprop="image" src="[[:print:]]+?"@', $data, $tmp); $current .= "John Smith\n"; file_put_contents($file, $current); echo "\n".substr($tmp[0][0],27,-1); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 60
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 60
Branch analysis from position: 18
2 jumps found. (Code = 47) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 47) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 35
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 33
Branch analysis from position: 30
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
filename:       /in/EmMQ0
function name:  (null)
number of ops:  62
compiled vars:  !0 = $course_link, !1 = $data, !2 = $video_links, !3 = $file, !4 = $current, !5 = $link, !6 = $key, !7 = $videopage_link, !8 = $redun, !9 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fm.uploadedit.com%2Fba3s%2F1479459820969.txt'
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $11     
          4        ASSIGN                                                   !1, $11
    4     5        INIT_FCALL                                               'preg_match_all'
          6        SEND_VAL                                                 '%40href%3D%22https%3A%2F%2Fwww.wikiart.org%2Fen%2Fsalvador-dal%5B%5B%3Aprint%3A%5D%5D%2B%3F%22%40'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
    6    10        ASSIGN                                                   !3, 'links.txt'
    7    11        INIT_FCALL                                               'file_get_contents'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $15     
         14        ASSIGN                                                   !4, $15
    9    15        FETCH_DIM_R                                      ~17     !2, 0
         16      > FE_RESET_R                                       $18     ~17, ->60
         17    > > FE_FETCH_R                                       ~19     $18, !5, ->60
         18    >   ASSIGN                                                   !6, ~19
   10    19        INIT_FCALL                                               'substr'
         20        SEND_VAR                                                 !5
         21        SEND_VAL                                                 6
         22        SEND_VAL                                                 -1
         23        DO_ICALL                                         $21     
         24        ASSIGN                                                   !7, $21
   11    25        STRLEN                                           ~23     !7
         26        IS_SMALLER_OR_EQUAL                              ~24     ~23, 41
         27      > JMPNZ_EX                                         ~24     ~24, ->30
         28    >   IS_SMALLER                                       ~25     !6, 4
         29        BOOL                                             ~24     ~25
         30    > > JMPNZ_EX                                         ~24     ~24, ->33
         31    >   IS_EQUAL                                         ~26     !7, !8
         32        BOOL                                             ~24     ~26
         33    > > JMPZ                                                     ~24, ->35
   12    34    > > JMP                                                      ->17
   14    35    >   ASSIGN                                                   !8, !7
   16    36        INIT_FCALL                                               'file_get_contents'
         37        SEND_VAR                                                 !7
         38        DO_ICALL                                         $28     
         39        ASSIGN                                                   !1, $28
   17    40        INIT_FCALL                                               'preg_match_all'
         41        SEND_VAL                                                 '%40%3Cimg+itemprop%3D%22image%22+src%3D%22%5B%5B%3Aprint%3A%5D%5D%2B%3F%22%40'
         42        SEND_VAR                                                 !1
         43        SEND_REF                                                 !9
         44        DO_ICALL                                                 
   19    45        ASSIGN_OP                                     8          !4, 'John+Smith%0A'
   20    46        INIT_FCALL                                               'file_put_contents'
         47        SEND_VAR                                                 !3
         48        SEND_VAR                                                 !4
         49        DO_ICALL                                                 
   22    50        INIT_FCALL                                               'substr'
         51        FETCH_DIM_R                                      ~33     !9, 0
         52        FETCH_DIM_R                                      ~34     ~33, 0
         53        SEND_VAL                                                 ~34
         54        SEND_VAL                                                 27
         55        SEND_VAL                                                 -1
         56        DO_ICALL                                         $35     
         57        CONCAT                                           ~36     '%0A', $35
         58        ECHO                                                     ~36
    9    59      > JMP                                                      ->17
         60    >   FE_FREE                                                  $18
   23    61      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
231.48 ms | 1400 KiB | 21 Q