3v4l.org

run code in 300+ PHP versions simultaneously
<?php 0; $offset = $argv[0]; // beware, no input validation! $query = $offset; echo $query; 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/r24ks
function name:  (null)
number of ops:  8
compiled vars:  !0 = $offset, !1 = $argv, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_DIM_R                                      ~3      !1, 0
          1        ASSIGN                                                   !0, ~3
    6     2        ASSIGN                                                   !2, !0
    7     3        ECHO                                                     !2
   10     4        ASSIGN                                                   !0, 'beware'
   11     5        ASSIGN                                                   !2, !0
   12     6        ECHO                                                     !2
   21     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.37 ms | 1397 KiB | 13 Q