3v4l.org

run code in 300+ PHP versions simultaneously
<?php //This is only presentation of the logic, isn't supposed to be 'safe', isn't supposed to even work //this is the index.php file $script = parseSomehow($_SERVER["REQUEST_URI"]);//the request url //might be 'home' or 'contact': require_once($script.'.php'); //home.php file: echo 'Hi! This is homepage'; //contact.php file: echo "to contact us, send mail to...";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ir8c5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $script
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL_BY_NAME                                       'parseSomehow'
          1        CHECK_FUNC_ARG                                           
          2        FETCH_FUNC_ARG               global              $1      '_SERVER'
          3        FETCH_DIM_FUNC_ARG                               $2      $1, 'REQUEST_URI'
          4        SEND_FUNC_ARG                                            $2
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !0, $3
    8     7        CONCAT                                           ~5      !0, '.php'
          8        INCLUDE_OR_EVAL                                          ~5, REQUIRE_ONCE
   11     9        ECHO                                                     'Hi%21+This+is+homepage'
   14    10        ECHO                                                     'to+contact+us%2C+send+mail+to...'
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.36 ms | 1397 KiB | 13 Q