3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$test = str_replace('-150wi', '', 'http://marriott2.typepad.com/.a/6a0128763ee05d970c01a511f170d1970c-150wi'); $test = strrchr('http://marriott2.typepad.com/.a/6a0128763ee05d970c01a511f170d1970c-150wi', '-'); if (substr($test, -2) === 'wi') { var_dump($test); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/1OKND
function name:  (null)
number of ops:  15
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'strrchr'
          1        SEND_VAL                                                 'http%3A%2F%2Fmarriott2.typepad.com%2F.a%2F6a0128763ee05d970c01a511f170d1970c-150wi'
          2        SEND_VAL                                                 '-'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    8     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 -2
          8        DO_ICALL                                         $3      
          9        IS_IDENTICAL                                             $3, 'wi'
         10      > JMPZ                                                     ~4, ->14
    9    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   10    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.21 ms | 1394 KiB | 19 Q