3v4l.org

run code in 500+ PHP versions simultaneously
<?php $baseUrl = '/core/install.php'; $requestUri = '/core/install.php'; if (null !== $baseUrl && false === $pathInfo = substr($requestUri, strlen($baseUrl))) { // If substr() returns false then PATH_INFO is set to an empty string print '/'; } elseif (null === $baseUrl) { print $requestUri; } print $pathInfo;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
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: 12
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: 9
filename:       /in/iuojJ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $baseUrl, !1 = $requestUri, !2 = $pathInfo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%2Fcore%2Finstall.php'
    3     1        ASSIGN                                                       !1, '%2Fcore%2Finstall.php'
    5     2        TYPE_CHECK                                      1020  ~5      !0
          3      > JMPZ_EX                                              ~5      ~5, ->9
          4    >   STRLEN                                               ~6      !0
          5        FRAMELESS_ICALL_2                substr              ~7      !1, ~6
          6        ASSIGN                                               ~8      !2, ~7
          7        TYPE_CHECK                                        4  ~9      ~8
          8        BOOL                                                 ~5      ~9
          9    > > JMPZ                                                         ~5, ->12
    7    10    >   ECHO                                                         '%2F'
    5    11      > JMP                                                          ->15
    8    12    >   TYPE_CHECK                                        2          !0
         13      > JMPZ                                                         ~10, ->15
    9    14    >   ECHO                                                         !1
   11    15    >   ECHO                                                         !2
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
187.99 ms | 3280 KiB | 13 Q