3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if(!isset($_SESSION['user'])){ echo('<a href="user/register.php"><span class="signbutton" style="background-color:aqua;">Registrovat se</span></a> <a href="user/login.php"><span class="signbutton">Přihlásit se</span></a>'); }else{ echo('Přihlášen: '.$_SESSION['user']); } ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
Jump found. Position 1 = 10
Branch analysis from position: 10
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = -2
filename:       /in/KsYKV
function name:  (null)
number of ops:  11
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   FETCH_IS                                         $0      '_SESSION'
         1        ISSET_ISEMPTY_DIM_OBJ                       33554432  ~1      $0, 'user'
         2        BOOL_NOT                                         ~2      ~1
         3      > JMPZ                                                     ~2, ->6
   4     4    >   ECHO                                                     '%3Ca+href%3D%22user%2Fregister.php%22%3E%3Cspan+class%3D%22signbutton%22+style%3D%22background-color%3Aaqua%3B%22%3ERegistrovat+se%3C%2Fspan%3E%3C%2Fa%3E%0A++++++++++%3Ca+href%3D%22user%2Flogin.php%22%3E%3Cspan+class%3D%22signbutton%22%3EP%C5%99ihl%C3%A1sit+se%3C%2Fspan%3E%3C%2Fa%3E'
         5      > JMP                                                      ->10
   6     6    >   FETCH_R                      global              $3      '_SESSION'
         7        FETCH_DIM_R                                      $4      $3, 'user'
         8        CONCAT                                           ~5      'P%C5%99ihl%C3%A1%C5%A1en%3A+', $4
         9        ECHO                                                     ~5
        10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0