3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_GET['user_name'])&&!empty($_GET['user_name'])) { $user_name = $_GET['user_name']; $user_name_lc = strtolower($user_name); if ($user_name_lc=='alex') { echo 'You are the best, '. $user_name; } } ?> <form action="index.php" method="GET"> Name: <input type="text" name="user_name"><br><br> <input type="Submit" value="Submit"> </form>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/d0V0p
function name:  (null)
number of ops:  21
compiled vars:  !0 = $user_name, !1 = $user_name_lc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_IS                                         ~2      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      ~2, 'user_name'
          2      > JMPZ_EX                                          ~3      ~3, ->7
          3    >   FETCH_IS                                         ~4      '_GET'
          4        ISSET_ISEMPTY_DIM_OBJ                         1  ~5      ~4, 'user_name'
          5        BOOL_NOT                                         ~6      ~5
          6        BOOL                                             ~3      ~6
          7    > > JMPZ                                                     ~3, ->19
    3     8    >   FETCH_R                      global              ~7      '_GET'
          9        FETCH_DIM_R                                      ~8      ~7, 'user_name'
         10        ASSIGN                                                   !0, ~8
    4    11        INIT_FCALL                                               'strtolower'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $10     
         14        ASSIGN                                                   !1, $10
    5    15        IS_EQUAL                                                 !1, 'alex'
         16      > JMPZ                                                     ~12, ->19
    6    17    >   CONCAT                                           ~13     'You+are+the+best%2C+', !0
         18        ECHO                                                     ~13
   10    19    >   ECHO                                                     '%3Cform+action%3D%22index.php%22+method%3D%22GET%22%3E%0AName%3A+%3Cinput+type%3D%22text%22+name%3D%22user_name%22%3E%3Cbr%3E%3Cbr%3E%0A%3Cinput+type%3D%22Submit%22+value%3D%22Submit%22%3E%0A%3C%2Fform%3E'
   13    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.05 ms | 1395 KiB | 15 Q