3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(@is_array(getimagesize('http://webimg.makegameserver.com/blog/usrUplds/ap-4e84a9810e7cd4474cf8bf2273d3a744.png'))) { header('Content-type: image/png'); echo file_get_contents('http://webimg.makegameserver.com/blog/usrUplds/ap-4e84a9810e7cd4474cf8bf2273d3a744.png'); } else echo 'error, file is not a valid image.';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/28RDo
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BEGIN_SILENCE                                    ~0      
          1        INIT_FCALL                                               'getimagesize'
          2        SEND_VAL                                                 'http%3A%2F%2Fwebimg.makegameserver.com%2Fblog%2FusrUplds%2Fap-4e84a9810e7cd4474cf8bf2273d3a744.png'
          3        DO_ICALL                                         $1      
          4        TYPE_CHECK                                  128  ~2      $1
          5        END_SILENCE                                              ~0
          6      > JMPZ                                                     ~2, ->15
    4     7    >   INIT_FCALL                                               'header'
          8        SEND_VAL                                                 'Content-type%3A+image%2Fpng'
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'file_get_contents'
         11        SEND_VAL                                                 'http%3A%2F%2Fwebimg.makegameserver.com%2Fblog%2FusrUplds%2Fap-4e84a9810e7cd4474cf8bf2273d3a744.png'
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
         14      > JMP                                                      ->16
    6    15    >   ECHO                                                     'error%2C+file+is+not+a+valid+image.'
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.17 ms | 1395 KiB | 19 Q