3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri = explode(':', "http://eshopmf-be.oskarmobil.cz/porthos/ld.php", 2); $scheme = strtolower($uri[0]); $schemeSpecific = isset($uri[1]) === true ? $uri[1] : ''; var_dump($uri); var_dump($scheme); var_dump($schemeSpecific); $pattern = '~^((//)([^/?#]*))([^?#]*)(\?([^#]*))?(#(.*))?$~'; $status = @preg_match($pattern, $schemeSpecific, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SmRPY
function name:  (null)
number of ops:  41
compiled vars:  !0 = $uri, !1 = $scheme, !2 = $schemeSpecific, !3 = $pattern, !4 = $status, !5 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%3A'
          2        SEND_VAL                                                 'http%3A%2F%2Feshopmf-be.oskarmobil.cz%2Fporthos%2Fld.php'
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !0, $6
    3     6        INIT_FCALL                                               'strtolower'
          7        FETCH_DIM_R                                      ~8      !0, 0
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !1, $9
    4    11        ISSET_ISEMPTY_DIM_OBJ                         0  ~11     !0, 1
         12        TYPE_CHECK                                    8          ~11
         13      > JMPZ                                                     ~12, ->17
         14    >   FETCH_DIM_R                                      ~13     !0, 1
         15        QM_ASSIGN                                        ~14     ~13
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~14     ''
         18    >   ASSIGN                                                   !2, ~14
    6    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
    8    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                                 
   10    28        ASSIGN                                                   !3, '%7E%5E%28%28%2F%2F%29%28%5B%5E%2F%3F%23%5D%2A%29%29%28%5B%5E%3F%23%5D%2A%29%28%5C%3F%28%5B%5E%23%5D%2A%29%29%3F%28%23%28.%2A%29%29%3F%24%7E'
   11    29        BEGIN_SILENCE                                    ~20     
         30        INIT_FCALL                                               'preg_match'
         31        SEND_VAR                                                 !3
         32        SEND_VAR                                                 !2
         33        SEND_REF                                                 !5
         34        DO_ICALL                                         $21     
         35        END_SILENCE                                              ~20
         36        ASSIGN                                                   !4, $21
   13    37        INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !5
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.87 ms | 1400 KiB | 21 Q