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://')) || ($pos = stripos($text, 'https://')) ) { echo $pos; echo substr($text, $pos); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 13
filename:       /in/SNTkC
function name:  (null)
number of ops:  21
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        ASSIGN                                           ~4      !1, $3
          6      > JMPNZ_EX                                         ~4      ~4, ->13
          7    >   INIT_FCALL                                               'stripos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'https%3A%2F%2F'
         10        DO_ICALL                                         $5      
         11        ASSIGN                                           ~6      !1, $5
         12        BOOL                                             ~4      ~6
         13    > > JMPZ                                                     ~4, ->20
    5    14    >   ECHO                                                     !1
    7    15        INIT_FCALL                                               'substr'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.22 ms | 1395 KiB | 17 Q