3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $str = $_SERVER['REQUEST_URI']; echo $selection_id = substr($str, strrpos($str,'#')+1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2nDpr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $selection_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~2      '_SERVER'
          1        FETCH_DIM_R                                      ~3      ~2, 'REQUEST_URI'
          2        ASSIGN                                                   !0, ~3
    4     3        INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'strrpos'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%23'
          8        DO_ICALL                                         $5      
          9        ADD                                              ~6      $5, 1
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                           ~8      !1, $7
         13        ECHO                                                     ~8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.95 ms | 1394 KiB | 17 Q