3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.88 ms | 1392 KiB | 13 Q