3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv=$__GET[0]; $offset = $argv[0]; // beware, no input validation! $query = $offset; echo $query; $offset='beware'; $query = $offset; echo $query; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KLcS1
function name:  (null)
number of ops:  10
compiled vars:  !0 = $argv, !1 = $__GET, !2 = $offset, !3 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_R                                      ~4      !1, 0
          1        ASSIGN                                                   !0, ~4
    3     2        FETCH_DIM_R                                      ~6      !0, 0
          3        ASSIGN                                                   !2, ~6
    6     4        ASSIGN                                                   !3, !2
    7     5        ECHO                                                     !3
   10     6        ASSIGN                                                   !2, 'beware'
   11     7        ASSIGN                                                   !3, !2
   12     8        ECHO                                                     !3
   21     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1384 KiB | 13 Q