3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var ="PHP TUTORIAL"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?php echo $var ?></title> </head> <body><form method="post"> <h3><?php echo $var ?></h3> <h1>Please input your name</h1> <input type="text" name="name"> <input type="submit" value="envoyer formulaire"></br></br> <?php if (!empty($_POST['name'])){ $name = $_POST['name']; echo '<h3>HELLO '.$name.' </h3>'; } else { $name= 'veuillez renseigner votre nom'; echo $name; } ?> </form> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YOue7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $var, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, 'PHP+TUTORIAL'
    2     1        ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml+lang%3D%22en%22%3E%0A%3Chead%3E%0A%09%3Cmeta+charset%3D%22UTF-8%22%3E%0A%09%3Ctitle%3E'
    6     2        ECHO                                                     !0
          3        ECHO                                                     '%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%3Cform+method%3D%22post%22%3E%0A%3Ch3%3E'
    9     4        ECHO                                                     !0
          5        ECHO                                                     '%3C%2Fh3%3E%0A%3Ch1%3EPlease+input+your+name%3C%2Fh1%3E%0A%3Cinput+type%3D%22text%22+name%3D%22name%22%3E%0A%3Cinput+type%3D%22submit%22+value%3D%22envoyer+formulaire%22%3E%3C%2Fbr%3E%3C%2Fbr%3E%0A'
   14     6        FETCH_IS                                         ~3      '_POST'
          7        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      ~3, 'name'
          8        BOOL_NOT                                         ~5      ~4
          9      > JMPZ                                                     ~5, ->17
   15    10    >   FETCH_R                      global              ~6      '_POST'
         11        FETCH_DIM_R                                      ~7      ~6, 'name'
         12        ASSIGN                                                   !1, ~7
   16    13        CONCAT                                           ~9      '%3Ch3%3EHELLO+', !1
         14        CONCAT                                           ~10     ~9, '+%3C%2Fh3%3E'
         15        ECHO                                                     ~10
         16      > JMP                                                      ->19
   18    17    >   ASSIGN                                                   !1, 'veuillez+renseigner+votre+nom'
   19    18        ECHO                                                     !1
   22    19    >   ECHO                                                     '%3C%2Fform%3E%0A%3C%2Fhtml%3E'
   23    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.66 ms | 1394 KiB | 13 Q