3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param string $getVar the name of the $_GET array key * @param mixed $checkVal the value to check it's equal to * @return bool */ function isGetVarSetAndEqual($getVar, $checkVal) { return isset($_GET[$getVar]) && $_GET[$getVar] == $checkVal ? true : false; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DraRN
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

Function isgetvarsetandequal:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/DraRN
function name:  isGetVarSetAndEqual
number of ops:  15
compiled vars:  !0 = $getVar, !1 = $checkVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        FETCH_IS                                         ~2      '_GET'
          3        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      ~2, !0
          4      > JMPZ_EX                                          ~3      ~3, ->9
          5    >   FETCH_R                      global              ~4      '_GET'
          6        FETCH_DIM_R                                      ~5      ~4, !0
          7        IS_EQUAL                                         ~6      !1, ~5
          8        BOOL                                             ~3      ~6
          9    > > JMPZ                                                     ~3, ->12
         10    >   QM_ASSIGN                                        ~7      <true>
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~7      <false>
         13    > > RETURN                                                   ~7
   11    14*     > RETURN                                                   null

End of function isgetvarsetandequal

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.03 ms | 1393 KiB | 13 Q