3v4l.org

run code in 300+ PHP versions simultaneously
<?php $redirectUrl = "http://google.com"; var_dump(strstr($redirectUrl, $request->getHost())); $redirectUrl = "http://3v4l.org"; var_dump(strstr($redirectUrl, $request->getHost())); $redirectUrl = "http://google.com/3val.org"; var_dump(strstr($redirectUrl, $request->getHost()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BcBQR
function name:  (null)
number of ops:  31
compiled vars:  !0 = $redirectUrl, !1 = $request
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        INIT_METHOD_CALL                                         !1, 'getHost'
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR                                                 $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        INIT_METHOD_CALL                                         !1, 'getHost'
         15        DO_FCALL                                      0  $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         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        INIT_METHOD_CALL                                         !1, 'getHost'
         25        DO_FCALL                                      0  $11     
         26        SEND_VAR                                                 $11
         27        DO_ICALL                                         $12     
         28        SEND_VAR                                                 $12
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.85 ms | 1395 KiB | 17 Q