3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page=array(); $matches = array(); $matches[1]='../ololo'; preg_match('#([A-Za-z0-9\-\_]*)#', $page, $matches); $file = '../views/' . $matches[1] . '.html'; var_dump($file);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tRXbp
function name:  (null)
number of ops:  17
compiled vars:  !0 = $page, !1 = $matches, !2 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN_DIM                                               !1, 1
          3        OP_DATA                                                  '..%2Fololo'
    5     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%23%28%5BA-Za-z0-9%5C-%5C_%5D%2A%29%23'
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    6     9        FETCH_DIM_R                                      ~7      !1, 1
         10        CONCAT                                           ~8      '..%2Fviews%2F', ~7
         11        CONCAT                                           ~9      ~8, '.html'
         12        ASSIGN                                                   !2, ~9
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.42 ms | 1394 KiB | 17 Q