3v4l.org

run code in 300+ PHP versions simultaneously
<?php $redirectUrl = "http://google.com"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST'])); $redirectUrl = "http://3v4l.org"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST'])); $redirectUrl = "http://google.com/3val.org"; var_dump(strstr($redirectUrl, $_SERVER['HTTP_HOST']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ijCnf
function name:  (null)
number of ops:  31
compiled vars:  !0 = $redirectUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fgoogle.com'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'strstr'
          3        SEND_VAR                                                 !0
          4        FETCH_R                      global              ~2      '_SERVER'
          5        FETCH_DIM_R                                      ~3      ~2, 'HTTP_HOST'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    6    10        ASSIGN                                                   !0, 'http%3A%2F%2F3v4l.org'
    7    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'strstr'
         13        SEND_VAR                                                 !0
         14        FETCH_R                      global              ~7      '_SERVER'
         15        FETCH_DIM_R                                      ~8      ~7, 'HTTP_HOST'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
    9    20        ASSIGN                                                   !0, 'http%3A%2F%2Fgoogle.com%2F3val.org'
   10    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'strstr'
         23        SEND_VAR                                                 !0
         24        FETCH_R                      global              ~12     '_SERVER'
         25        FETCH_DIM_R                                      ~13     ~12, 'HTTP_HOST'
         26        SEND_VAL                                                 ~13
         27        DO_ICALL                                         $14     
         28        SEND_VAR                                                 $14
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.89 ms | 1395 KiB | 17 Q