3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = array('id'=>array(1)); $userId = $_GET['id']; if ($userId === 1) { die('You cannot delete the admin super user.'); } $db->execute('delete from Users where id=?',$userId);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7dSA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $userId, !1 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $2      '_GET'
          1        ASSIGN                                                   $2, <array>
    4     2        FETCH_R                      global              ~4      '_GET'
          3        FETCH_DIM_R                                      ~5      ~4, 'id'
          4        ASSIGN                                                   !0, ~5
    5     5        IS_IDENTICAL                                             !0, 1
          6      > JMPZ                                                     ~7, ->8
    6     7    > > EXIT                                                     'You+cannot+delete+the+admin+super+user.'
    8     8    >   INIT_METHOD_CALL                                         !1, 'execute'
          9        SEND_VAL_EX                                              'delete+from+Users+where+id%3D%3F'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.7 ms | 1393 KiB | 13 Q