3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'http://www.oogle.co.uk/'; $url = str_replace('http://', '', strtolower( $input)); if (strpos($url, '/')) $url = strstr($url, '/', true); echo $url; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/Rd1fj
function name:  (null)
number of ops:  23
compiled vars:  !0 = $input, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.oogle.co.uk%2F'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 'http%3A%2F%2F'
          3        SEND_VAL                                                 ''
          4        INIT_FCALL                                               'strtolower'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    5    10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 '%2F'
         13        DO_ICALL                                         $6      
         14      > JMPZ                                                     $6, ->21
         15    >   INIT_FCALL                                               'strstr'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 '%2F'
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $7      
         20        ASSIGN                                                   !1, $7
    6    21    >   ECHO                                                     !1
    8    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.83 ms | 1395 KiB | 21 Q