3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'tehdgsd f fs fsddf sdf http://mail.ru?dsdfll fdsfsd'; if( $pos = (stripos($text, 'http://') || stripos($text, 'https://')) ) { echo substr($text, $pos); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 11
filename:       /in/JOkjT
function name:  (null)
number of ops:  19
compiled vars:  !0 = $text, !1 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'tehdgsd+f+fs+fsddf+sdf+http%3A%2F%2Fmail.ru%3Fdsdfll+fdsfsd'
    3     1        INIT_FCALL                                               'stripos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'http%3A%2F%2F'
          4        DO_ICALL                                         $3      
          5      > JMPNZ_EX                                         ~4      $3, ->11
          6    >   INIT_FCALL                                               'stripos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'https%3A%2F%2F'
          9        DO_ICALL                                         $5      
         10        BOOL                                             ~4      $5
         11    >   ASSIGN                                           ~6      !1, ~4
         12      > JMPZ                                                     ~6, ->18
    5    13    >   INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        ECHO                                                     $7
    6    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.83 ms | 1386 KiB | 17 Q