3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1'); if(preg_match("/<url>(.+?)<\/url>/ies",$str,$matches)){ $imgurl='http://cn.bing.com'.$matches[1]; } if($imgurl){ header('Content-Type: image/JPEG'); @ob_end_clean(); @readfile($imgurl); @flush(); @ob_flush(); exit(); }else{ exit('error'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 36
Branch analysis from position: 14
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
filename:       /in/q703J
function name:  (null)
number of ops:  38
compiled vars:  !0 = $str, !1 = $matches, !2 = $imgurl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fcn.bing.com%2FHPImageArchive.aspx%3Fidx%3D0%26n%3D1'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%3Curl%3E%28.%2B%3F%29%3C%5C%2Furl%3E%2Fies'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $5      
          9      > JMPZ                                                     $5, ->13
    4    10    >   FETCH_DIM_R                                      ~6      !1, 1
         11        CONCAT                                           ~7      'http%3A%2F%2Fcn.bing.com', ~6
         12        ASSIGN                                                   !2, ~7
    6    13    > > JMPZ                                                     !2, ->36
    7    14    >   INIT_FCALL                                               'header'
         15        SEND_VAL                                                 'Content-Type%3A+image%2FJPEG'
         16        DO_ICALL                                                 
    8    17        BEGIN_SILENCE                                    ~10     
         18        INIT_FCALL                                               'ob_end_clean'
         19        DO_ICALL                                                 
         20        END_SILENCE                                              ~10
    9    21        BEGIN_SILENCE                                    ~12     
         22        INIT_FCALL                                               'readfile'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25        END_SILENCE                                              ~12
   10    26        BEGIN_SILENCE                                    ~14     
         27        INIT_FCALL                                               'flush'
         28        DO_ICALL                                                 
         29        END_SILENCE                                              ~14
         30        BEGIN_SILENCE                                    ~16     
         31        INIT_FCALL                                               'ob_flush'
         32        DO_ICALL                                                 
         33        END_SILENCE                                              ~16
   11    34      > EXIT                                                     
         35*       JMP                                                      ->37
   13    36    > > EXIT                                                     'error'
   14    37*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.43 ms | 1396 KiB | 27 Q