3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path_info = $_SERVER['PATH_INFO'] // If PATH_INFO isn't enabled, strip everything up to and including 'index.php/' off the full URI ?: substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], 'index.php') + 10); $uri_args = explode('/', $path_info);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iot98
function name:  (null)
number of ops:  24
compiled vars:  !0 = $path_info, !1 = $uri_args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_R                      global              ~2      '_SERVER'
          1        FETCH_DIM_R                                      ~3      ~2, 'PATH_INFO'
          2        JMP_SET                                          ~4      ~3, ->17
    6     3        INIT_FCALL                                               'substr'
          4        FETCH_R                      global              ~5      '_SERVER'
          5        FETCH_DIM_R                                      ~6      ~5, 'REQUEST_URI'
          6        SEND_VAL                                                 ~6
          7        INIT_FCALL                                               'strpos'
          8        FETCH_R                      global              ~7      '_SERVER'
          9        FETCH_DIM_R                                      ~8      ~7, 'REQUEST_URI'
         10        SEND_VAL                                                 ~8
         11        SEND_VAL                                                 'index.php'
         12        DO_ICALL                                         $9      
         13        ADD                                              ~10     $9, 10
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                         $11     
         16        QM_ASSIGN                                        ~4      $11
    3    17        ASSIGN                                                   !0, ~4
    8    18        INIT_FCALL                                               'explode'
         19        SEND_VAL                                                 '%2F'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !1, $13
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.45 ms | 1399 KiB | 19 Q