3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $pg; $_GET['pg']=10; if( isset($_GET['pg']) ) $pg=$_GET["pg"]; echo $pg; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/9iOoc
function name:  (null)
number of ops:  12
compiled vars:  !0 = $pg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BIND_GLOBAL                                              !0, 'pg'
    3     1        FETCH_W                      global              $1      '_GET'
          2        ASSIGN_DIM                                               $1, 'pg'
          3        OP_DATA                                                  10
    4     4        FETCH_IS                                         ~3      '_GET'
          5        ISSET_ISEMPTY_DIM_OBJ                         0          ~3, 'pg'
          6      > JMPZ                                                     ~4, ->10
          7    >   FETCH_R                      global              ~5      '_GET'
          8        FETCH_DIM_R                                      ~6      ~5, 'pg'
          9        ASSIGN                                                   !0, ~6
    5    10    >   ECHO                                                     !0
    7    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.4 ms | 1392 KiB | 13 Q