3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nice = 1; $u = 'data://,Good Work!'; if (!isset ($u)) $nice = 0; if (ereg ('\.', $u)) $nice = 0; if (ereg ('%', $u)) $nice = 0; echo $nice; if (ereg ('[0-9]', $u)) $nice = 0; if (ereg ('http', $u) ) $nice = 0; if (ereg ('https', $u) ) $nice = 0; if (ereg ('ftp', $u)) $nice = 0; if (ereg ('telnet', $u)) $nice = 0; echo $nice; if ($nice) { if (@file_exists ($u)) $nice = 0; } echo $nice; if ($nice) { $nice = @file_get_contents ($u); echo $nice; if ($nice === 'Good Work!') echo 'ok'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 37
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 43
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 49
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 58
Branch analysis from position: 51
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 58
Branch analysis from position: 57
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 70
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 70
Branch analysis from position: 69
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 70
Branch analysis from position: 70
Branch analysis from position: 58
Branch analysis from position: 58
Branch analysis from position: 49
Branch analysis from position: 43
Branch analysis from position: 37
Branch analysis from position: 31
Branch analysis from position: 25
Branch analysis from position: 18
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/9ll1q
function name:  (null)
number of ops:  71
compiled vars:  !0 = $nice, !1 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 'data%3A%2F%2F%2CGood+Work%21'
    4     2        ISSET_ISEMPTY_CV                                 ~4      !1
          3        BOOL_NOT                                         ~5      ~4
          4      > JMPZ                                                     ~5, ->6
          5    >   ASSIGN                                                   !0, 0
    5     6    >   INIT_FCALL_BY_NAME                                       'ereg'
          7        SEND_VAL_EX                                              '%5C.'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $7      
         10      > JMPZ                                                     $7, ->12
         11    >   ASSIGN                                                   !0, 0
    6    12    >   INIT_FCALL_BY_NAME                                       'ereg'
         13        SEND_VAL_EX                                              '%25'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $9      
         16      > JMPZ                                                     $9, ->18
         17    >   ASSIGN                                                   !0, 0
    7    18    >   ECHO                                                     !0
    8    19        INIT_FCALL_BY_NAME                                       'ereg'
         20        SEND_VAL_EX                                              '%5B0-9%5D'
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0  $11     
         23      > JMPZ                                                     $11, ->25
         24    >   ASSIGN                                                   !0, 0
    9    25    >   INIT_FCALL_BY_NAME                                       'ereg'
         26        SEND_VAL_EX                                              'http'
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0  $13     
         29      > JMPZ                                                     $13, ->31
         30    >   ASSIGN                                                   !0, 0
   10    31    >   INIT_FCALL_BY_NAME                                       'ereg'
         32        SEND_VAL_EX                                              'https'
         33        SEND_VAR_EX                                              !1
         34        DO_FCALL                                      0  $15     
         35      > JMPZ                                                     $15, ->37
         36    >   ASSIGN                                                   !0, 0
   11    37    >   INIT_FCALL_BY_NAME                                       'ereg'
         38        SEND_VAL_EX                                              'ftp'
         39        SEND_VAR_EX                                              !1
         40        DO_FCALL                                      0  $17     
         41      > JMPZ                                                     $17, ->43
         42    >   ASSIGN                                                   !0, 0
   12    43    >   INIT_FCALL_BY_NAME                                       'ereg'
         44        SEND_VAL_EX                                              'telnet'
         45        SEND_VAR_EX                                              !1
         46        DO_FCALL                                      0  $19     
         47      > JMPZ                                                     $19, ->49
         48    >   ASSIGN                                                   !0, 0
   13    49    >   ECHO                                                     !0
   14    50      > JMPZ                                                     !0, ->58
   15    51    >   BEGIN_SILENCE                                    ~21     
         52        INIT_FCALL                                               'file_exists'
         53        SEND_VAR                                                 !1
         54        DO_ICALL                                         $22     
         55        END_SILENCE                                              ~21
         56      > JMPZ                                                     $22, ->58
         57    >   ASSIGN                                                   !0, 0
   17    58    >   ECHO                                                     !0
   18    59      > JMPZ                                                     !0, ->70
   19    60    >   BEGIN_SILENCE                                    ~24     
         61        INIT_FCALL                                               'file_get_contents'
         62        SEND_VAR                                                 !1
         63        DO_ICALL                                         $25     
         64        END_SILENCE                                              ~24
         65        ASSIGN                                                   !0, $25
   20    66        ECHO                                                     !0
   21    67        IS_IDENTICAL                                             !0, 'Good+Work%21'
         68      > JMPZ                                                     ~27, ->70
         69    >   ECHO                                                     'ok'
   23    70    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.14 ms | 1400 KiB | 17 Q