3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lien = "http://www.hatshowroom.com/chapeaux/8-feutre-monkey-noir-3000008353259.html"; if(urlExist($lien) === FALSE){ echo 'KO'; } else { echo "Goog"; } function urlExist($url) { $file_headers = @get_headers($url); if($file_headers[0] == 'HTTP/1.1 404 Not Found'){ return false; } else { return true; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8MQ9E
function name:  (null)
number of ops:  10
compiled vars:  !0 = $lien
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.hatshowroom.com%2Fchapeaux%2F8-feutre-monkey-noir-3000008353259.html'
    5     1        INIT_FCALL_BY_NAME                                       'urlExist'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4        TYPE_CHECK                                    4          $2
          5      > JMPZ                                                     ~3, ->8
    6     6    >   ECHO                                                     'KO'
          7      > JMP                                                      ->9
    8     8    >   ECHO                                                     'Goog'
   18     9    > > RETURN                                                   1

Function urlexist:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8MQ9E
function name:  urlExist
number of ops:  14
compiled vars:  !0 = $url, !1 = $file_headers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        BEGIN_SILENCE                                    ~2      
          2        INIT_FCALL                                               'get_headers'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        END_SILENCE                                              ~2
          6        ASSIGN                                                   !1, $3
   13     7        FETCH_DIM_R                                      ~5      !1, 0
          8        IS_EQUAL                                                 ~5, 'HTTP%2F1.1+404+Not+Found'
          9      > JMPZ                                                     ~6, ->12
   14    10    > > RETURN                                                   <false>
         11*       JMP                                                      ->13
   16    12    > > RETURN                                                   <true>
   18    13*     > RETURN                                                   null

End of function urlexist

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.19 ms | 1396 KiB | 15 Q