3v4l.org

run code in 300+ 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 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
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: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 12
filename:       /in/iuojJ
function name:  (null)
number of ops:  20
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, ->12
          4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !1
          6        STRLEN                                           ~6      !0
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        ASSIGN                                           ~8      !2, $7
         10        TYPE_CHECK                                    4  ~9      ~8
         11        BOOL                                             ~5      ~9
         12    > > JMPZ                                                     ~5, ->15
    7    13    >   ECHO                                                     '%2F'
         14      > JMP                                                      ->18
    8    15    >   TYPE_CHECK                                    2          !0
         16      > JMPZ                                                     ~10, ->18
    9    17    >   ECHO                                                     !1
   11    18    >   ECHO                                                     !2
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.24 ms | 1400 KiB | 15 Q