3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> </head> <title> </title> <body> <?php if (!$_POST['submit']) { ?> <form action="<?= $_SERVER['SELF_PHP'];?>" method="post" > Enter any Number:<input name="number" size="2"> <input type="submit" name="submit" value="OK!"> <?php } else { $number=$_POST['number']; if ($number >0) { echo 'You entered a positive number'; } elseif ($number < 0) { echo 'You entered a negative number'; } else { echo 'You entered zero'; } } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QjBnH
function name:  (null)
number of ops:  25
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E+%3C%2Fhead%3E%0A%3Ctitle%3E+%3C%2Ftitle%3E%0A%3Cbody%3E%0A'
    6     1        FETCH_R                      global              ~1      '_POST'
          2        FETCH_DIM_R                                      ~2      ~1, 'submit'
          3        BOOL_NOT                                         ~3      ~2
          4      > JMPZ                                                     ~3, ->11
    8     5    >   ECHO                                                     '%3Cform+action%3D%22'
          6        FETCH_R                      global              ~4      '_SERVER'
          7        FETCH_DIM_R                                      ~5      ~4, 'SELF_PHP'
          8        ECHO                                                     ~5
          9        ECHO                                                     '%22+method%3D%22post%22+%3E%0AEnter+any+Number%3A%3Cinput+name%3D%22number%22+size%3D%222%22%3E%0A%3Cinput+type%3D%22submit%22+name%3D%22submit%22+value%3D%22OK%21%22%3E%0A'
         10      > JMP                                                      ->23
   15    11    >   FETCH_R                      global              ~6      '_POST'
         12        FETCH_DIM_R                                      ~7      ~6, 'number'
         13        ASSIGN                                                   !0, ~7
   16    14        IS_SMALLER                                               0, !0
         15      > JMPZ                                                     ~9, ->18
   18    16    >   ECHO                                                     'You+entered+a+positive+number'
         17      > JMP                                                      ->23
   21    18    >   IS_SMALLER                                               !0, 0
         19      > JMPZ                                                     ~10, ->22
   23    20    >   ECHO                                                     'You+entered+a+negative+number'
         21      > JMP                                                      ->23
   27    22    >   ECHO                                                     'You+entered+zero'
   32    23    >   ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   34    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.62 ms | 1398 KiB | 14 Q