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);
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/2dtkQ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $uri, !1 = $scheme, !2 = $schemeSpecific
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                                         $3      
          5        ASSIGN                                                   !0, $3
    3     6        INIT_FCALL                                               'strtolower'
          7        FETCH_DIM_R                                      ~5      !0, 0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    4    11        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !0, 1
         12        TYPE_CHECK                                    8          ~8
         13      > JMPZ                                                     ~9, ->17
         14    >   FETCH_DIM_R                                      ~10     !0, 1
         15        QM_ASSIGN                                        ~11     ~10
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~11     ''
         18    >   ASSIGN                                                   !2, ~11
    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                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.65 ms | 1396 KiB | 19 Q