3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.68 ms | 1398 KiB | 15 Q