3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method='POST'> <h2>Please input your name:</h2> <input type="text" name="name"> <input type="submit" value="Submit Name"> </form> <?php //Retrieve name from query string and store to a local variable $name = $_POST['name']; echo "<h3> Hello $name </h3>"; ?> </body> </html> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#EDITOR
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kKQ2B
function name:  (null)
number of ops:  10
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E++%0A%3Chtml%3E++%0A%3Chead%3E++%0A+++%3Ctitle%3E%3C%2Ftitle%3E++%0A+++%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E++%0A+++%3C%2Fhead%3E++%0A+++%3Cbody%3E++%0A+++%3Cform+method%3D%27POST%27%3E++%0A+++%3Ch2%3EPlease+input+your+name%3A%3C%2Fh2%3E++%0A+%3Cinput+type%3D%22text%22+name%3D%22name%22%3E++%0A+%3Cinput+type%3D%22submit%22+value%3D%22Submit+Name%22%3E++%0A+%3C%2Fform%3E++%0A'
   15     1        FETCH_R                      global              ~1      '_POST'
          2        FETCH_DIM_R                                      ~2      ~1, 'name'
          3        ASSIGN                                                   !0, ~2
   16     4        ROPE_INIT                                     3  ~5      '%3Ch3%3E+Hello+'
          5        ROPE_ADD                                      1  ~5      ~5, !0
          6        ROPE_END                                      2  ~4      ~5, '+%3C%2Fh3%3E'
          7        ECHO                                                     ~4
   17     8        ECHO                                                     '++%0A%3C%2Fbody%3E++%0A%3C%2Fhtml%3E%0A-+See+more+at%3A+http%3A%2F%2Fwww.w3resource.com%2Fphp-exercises%2Fphp-basic-exercises.php%23EDITOR'
   20     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.51 ms | 1393 KiB | 13 Q