3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = $_GET['path']; if(!isset($path)){ echo file_get_contents('index.html'); die(); } require 'work-data.php'; $size = count($portfolio); for($portfolioIndex = 0 ; $portfolioIndex < $size ; $portfolioIndex++){ if($path === $portfolio[$portfolioIndex].path){ $record = $portfolio[$portfolioIndex]; } } echo file_get_contents('index.html'); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 16
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 16
Branch analysis from position: 26
Branch analysis from position: 16
Branch analysis from position: 23
filename:       /in/udYWq
function name:  (null)
number of ops:  31
compiled vars:  !0 = $path, !1 = $size, !2 = $portfolio, !3 = $portfolioIndex, !4 = $record
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_R                      global              ~5      '_GET'
          1        FETCH_DIM_R                                      ~6      ~5, 'path'
          2        ASSIGN                                                   !0, ~6
    3     3        ISSET_ISEMPTY_CV                                 ~8      !0
          4        BOOL_NOT                                         ~9      ~8
          5      > JMPZ                                                     ~9, ->11
    4     6    >   INIT_FCALL                                               'file_get_contents'
          7        SEND_VAL                                                 'index.html'
          8        DO_ICALL                                         $10     
          9        ECHO                                                     $10
    5    10      > EXIT                                                     
    7    11    >   INCLUDE_OR_EVAL                                          'work-data.php', REQUIRE
    8    12        COUNT                                            ~12     !2
         13        ASSIGN                                                   !1, ~12
    9    14        ASSIGN                                                   !3, 0
         15      > JMP                                                      ->24
   10    16    >   FETCH_DIM_R                                      ~15     !2, !3
         17        FETCH_CONSTANT                                   ~16     'path'
         18        CONCAT                                           ~17     ~15, ~16
         19        IS_IDENTICAL                                             !0, ~17
         20      > JMPZ                                                     ~18, ->23
   11    21    >   FETCH_DIM_R                                      ~19     !2, !3
         22        ASSIGN                                                   !4, ~19
    9    23    >   PRE_INC                                                  !3
         24    >   IS_SMALLER                                               !3, !1
         25      > JMPNZ                                                    ~22, ->16
   15    26    >   INIT_FCALL                                               'file_get_contents'
         27        SEND_VAL                                                 'index.html'
         28        DO_ICALL                                         $23     
         29        ECHO                                                     $23
   16    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1401 KiB | 15 Q