3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url1 = "www.viber.ge"; $url2 = "viber.ge"; If(strlen($url1) > strlen($url2)){ If(str_replace($url2,"",$url1) == "www."){ Echo "same domain"; }Else{ Echo "not same"; } }Else{ If(str_replace($url1,"",$url2) == "www."){ Echo "same domain"; }Else{ Echo "not same"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XtHWr
function name:  (null)
number of ops:  28
compiled vars:  !0 = $url1, !1 = $url2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'www.viber.ge'
    4     1        ASSIGN                                                   !1, 'viber.ge'
    6     2        STRLEN                                           ~4      !0
          3        STRLEN                                           ~5      !1
          4        IS_SMALLER                                               ~5, ~4
          5      > JMPZ                                                     ~6, ->17
    7     6    >   INIT_FCALL                                               'str_replace'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        IS_EQUAL                                                 $7, 'www.'
         12      > JMPZ                                                     ~8, ->15
    8    13    >   ECHO                                                     'same+domain'
    7    14      > JMP                                                      ->16
   10    15    >   ECHO                                                     'not+same'
    6    16    > > JMP                                                      ->27
   13    17    >   INIT_FCALL                                               'str_replace'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 ''
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $9      
         22        IS_EQUAL                                                 $9, 'www.'
         23      > JMPZ                                                     ~10, ->26
   14    24    >   ECHO                                                     'same+domain'
   13    25      > JMP                                                      ->27
   16    26    >   ECHO                                                     'not+same'
   18    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.04 ms | 999 KiB | 14 Q