3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_GET['item'])) { $cart_item = $_GET['item']; } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> </head> <body> <form method="post" action=""/> <input type="hidden" name="item"> <input type="submit" value="Yes, Add to Cart"> </form> echo $item; </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/gj99L
function name:  (null)
number of ops:  8
compiled vars:  !0 = $cart_item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_IS                                         ~1      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'item'
          2      > JMPZ                                                     ~2, ->6
    3     3    >   FETCH_R                      global              ~3      '_GET'
          4        FETCH_DIM_R                                      ~4      ~3, 'item'
          5        ASSIGN                                                   !0, ~4
    6     6    >   ECHO                                                     '%0A%3C%21doctype+html%3E%0A%3Chtml+lang%3D%22en%22%3E%0A%3Chead%3E%0A%3Cmeta+charset%3D%22utf-8%22%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%3Cform+method%3D%22post%22+action%3D%22%22%2F%3E%0A%3Cinput+type%3D%22hidden%22+name%3D%22item%22%3E%0A%3Cinput+type%3D%22submit%22+value%3D%22Yes%2C+Add+to+Cart%22%3E%0A%3C%2Fform%3E%0A%0A+echo+%24item%3B%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   20     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.05 ms | 1393 KiB | 13 Q