3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.1 ms | 1392 KiB | 13 Q