3v4l.org

run code in 300+ PHP versions simultaneously
<?php $globalFilters = array( "w00tw00t.at.ISC.SANS.Win32", "Directory index forbidden by Options directive", "File does not exist: /home/webroot/front-end", "script not found or unable to stat: /home/webroot/cgi-bin" ); $serverFilters = array( 'admin' => array( "patate" ), 'api' => array(), 'conversion1b' => array(), 'dispatcher' => array(), 'gw' => array(), 'img' => array(), 'kiosk' => array(), 'monitoring' => array(), 'search' => array(), 'stage' => array(), 'statsm1a' => array(), 'statss1a' => array(), 'svn' => array(), 'transfer' => array(), 'web' => array(), 'website' => array(), ); if (isset($_REQUEST['server']) && isset($serverFilters[$_REQUEST['server']])) $globalFilters = array_merge($globalFilters, $serverFilters[$_REQUEST['server']]); $test = array_walk(function($value) { return preg_quote($value); }, $globalFilters); print "/" . implode("|", $test) . "/"; exit; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 9
filename:       /in/B6KJT
function name:  (null)
number of ops:  33
compiled vars:  !0 = $globalFilters, !1 = $serverFilters, !2 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   31     2        FETCH_IS                                         ~5      '_REQUEST'
          3        ISSET_ISEMPTY_DIM_OBJ                         0  ~6      ~5, 'server'
          4      > JMPZ_EX                                          ~6      ~6, ->9
          5    >   FETCH_R                      global              ~7      '_REQUEST'
          6        FETCH_DIM_R                                      ~8      ~7, 'server'
          7        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !1, ~8
          8        BOOL                                             ~6      ~9
          9    > > JMPZ                                                     ~6, ->18
         10    >   INIT_FCALL                                               'array_merge'
         11        SEND_VAR                                                 !0
         12        FETCH_R                      global              ~10     '_REQUEST'
         13        FETCH_DIM_R                                      ~11     ~10, 'server'
         14        FETCH_DIM_R                                      ~12     !1, ~11
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                         $13     
         17        ASSIGN                                                   !0, $13
   33    18    >   INIT_FCALL                                               'array_walk'
         19        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FB6KJT%3A33%240'
         20        SEND_VAL_EX                                              ~15
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !2, $16
   34    24        INIT_FCALL                                               'implode'
         25        SEND_VAL                                                 '%7C'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                         $18     
         28        CONCAT                                           ~19     '%2F', $18
         29        CONCAT                                           ~20     ~19, '%2F'
         30        ECHO                                                     ~20
   36    31      > EXIT                                                     
   38    32*     > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FB6KJT%3A33%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B6KJT
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'preg_quote'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FB6KJT%3A33%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.84 ms | 1400 KiB | 21 Q