3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://eoc.io'; if (!preg_match('~^https?\:\/\/(?:[a-z\_\-0-9]|\.)+\.[a-z0-9]+(\/?)~i', $url, $matched)) { }else if($matched && $matched[1] === ''){ $url .= '/'; } var_dump($url);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 13
filename:       /in/iAucF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $url, !1 = $matched
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Feoc.io'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5Ehttps%3F%5C%3A%5C%2F%5C%2F%28%3F%3A%5Ba-z%5C_%5C-0-9%5D%7C%5C.%29%2B%5C.%5Ba-z0-9%5D%2B%28%5C%2F%3F%29%7Ei'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6        BOOL_NOT                                         ~4      $3
          7      > JMPZ                                                     ~4, ->9
          8    > > JMP                                                      ->15
    5     9    > > JMPZ_EX                                          ~5      !1, ->13
         10    >   FETCH_DIM_R                                      ~6      !1, 1
         11        IS_IDENTICAL                                     ~7      ~6, ''
         12        BOOL                                             ~5      ~7
         13    > > JMPZ                                                     ~5, ->15
    6    14    >   ASSIGN_OP                                     8          !0, '%2F'
    8    15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.76 ms | 1395 KiB | 17 Q