3v4l.org

run code in 300+ PHP versions simultaneously
<?php $surl = 'http://bit.ly/IrKd8Q'; stream_context_set_default(array('http' => array('method' => 'HEAD'))); $header = get_headers($surl , 1); $result = $header['Location']; echo htmlspecialchars($result , ENT_QUOTES,'UTF-8'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cam3p
function name:  (null)
number of ops:  18
compiled vars:  !0 = $surl, !1 = $header, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fbit.ly%2FIrKd8Q'
    5     1        INIT_FCALL                                               'stream_context_set_default'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'get_headers'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    9     9        FETCH_DIM_R                                      ~7      !1, 'Location'
         10        ASSIGN                                                   !2, ~7
   11    11        INIT_FCALL                                               'htmlspecialchars'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 3
         14        SEND_VAL                                                 'UTF-8'
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
   14    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.46 ms | 1394 KiB | 19 Q