3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = ''; $configuration = array( 'applicationID' => 1, 'serverid' => 1, 'ul' => '', 'password' => '', 'adminuser' => '', 'hidelogin' => 1, 'AppMode' => '', 'username' => '' ); if (isset($_SERVER['SYMFONY__ENVIRONMENT']) && ($_SERVER['SYMFONY__ENVIRONMENT'] == 'prod')) { $overrides = array('password' => '', 'adminuser' => ''); $configuration = array_merge($configuration, $overrides); } renderView($url, $configuration); function renderView($url, $configuration) { $view = '<html> <head> <title>k</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href="wh.css" rel="stylesheet"/> </head> <body> <header> <h1 id="title"> <span class="icon"><img src="" alt=""/></span> </h1> </header> <div id="sub-header"> <h1> <span class="text"></span> </h1> </div> <div id="login-form">'; $view .= sprintf('<form action="%s" method="get" id="playerCheck">%s', $url, "\n"); foreach ($configuration as $name => $value) { $view .= sprintf('<input type="hidden" name="%s" id="%s" value="%s"/>%s', $name, $name, $value, "\n"); } $view .= '<input type="text" id="incompleteUsername" placeholder="Username" /> <input type="button" value="Check Player" id="sendForm" class="who-blue"/> </form> </div> </body> <script src="jquery-1.10.1.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $(\'#sendForm\').click(function () { $(\'#username\').val( "aa_" + $(\'#incompleteUsername\').val() ); $(\'#playerCheck\').submit(); }); }); </script> </html>'; echo $view; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 9
filename:       /in/TYCiB
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url, !1 = $configuration, !2 = $overrides
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    5     1        ASSIGN                                                   !1, <array>
   16     2        FETCH_IS                                         ~5      '_SERVER'
          3        ISSET_ISEMPTY_DIM_OBJ                         0  ~6      ~5, 'SYMFONY__ENVIRONMENT'
          4      > JMPZ_EX                                          ~6      ~6, ->9
          5    >   FETCH_R                      global              ~7      '_SERVER'
          6        FETCH_DIM_R                                      ~8      ~7, 'SYMFONY__ENVIRONMENT'
          7        IS_EQUAL                                         ~9      ~8, 'prod'
          8        BOOL                                             ~6      ~9
          9    > > JMPZ                                                     ~6, ->16
   17    10    >   ASSIGN                                                   !2, <array>
   19    11        INIT_FCALL                                               'array_merge'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !1, $11
   22    16    >   INIT_FCALL_BY_NAME                                       'renderView'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0          
   72    20      > RETURN                                                   1

Function renderview:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/TYCiB
function name:  renderView
number of ops:  25
compiled vars:  !0 = $url, !1 = $configuration, !2 = $view, !3 = $value, !4 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   27     2        ASSIGN                                                   !2, '%3Chtml%3E%0A%3Chead%3E%0A++++%3Ctitle%3Ek%3C%2Ftitle%3E%0A++++%3Cmeta+name%3D%22viewport%22+content%3D%22width%3Ddevice-width%2C+initial-scale%3D1%2C+maximum-scale%3D1%22%3E%0A++++%3Clink+href%3D%22wh.css%22+rel%3D%22stylesheet%22%2F%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%3Cheader%3E%0A++++%3Ch1+id%3D%22title%22%3E%0A++++++++++++%3Cspan+class%3D%22icon%22%3E%3Cimg+src%3D%22%22+alt%3D%22%22%2F%3E%3C%2Fspan%3E%0A++++%3C%2Fh1%3E%0A%3C%2Fheader%3E%0A%3Cdiv+id%3D%22sub-header%22%3E%0A++++%3Ch1%3E%0A++++++++%3Cspan+class%3D%22text%22%3E%3C%2Fspan%3E%0A++++%3C%2Fh1%3E%0A%3C%2Fdiv%3E%0A%0A%3Cdiv+id%3D%22login-form%22%3E'
   47     3        INIT_FCALL                                               'sprintf'
          4        SEND_VAL                                                 '%3Cform+action%3D%22%25s%22+method%3D%22get%22+id%3D%22playerCheck%22%3E%25s'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '%0A'
          7        DO_ICALL                                         $6      
          8        ASSIGN_OP                                     8          !2, $6
   49     9      > FE_RESET_R                                       $8      !1, ->21
         10    > > FE_FETCH_R                                       ~9      $8, !3, ->21
         11    >   ASSIGN                                                   !4, ~9
   50    12        INIT_FCALL                                               'sprintf'
         13        SEND_VAL                                                 '%3Cinput+type%3D%22hidden%22+name%3D%22%25s%22+id%3D%22%25s%22+value%3D%22%25s%22%2F%3E%25s'
         14        SEND_VAR                                                 !4
         15        SEND_VAR                                                 !4
         16        SEND_VAR                                                 !3
         17        SEND_VAL                                                 '%0A'
         18        DO_ICALL                                         $11     
         19        ASSIGN_OP                                     8          !2, $11
   49    20      > JMP                                                      ->10
         21    >   FE_FREE                                                  $8
   53    22        ASSIGN_OP                                     8          !2, '%3Cinput+type%3D%22text%22+id%3D%22incompleteUsername%22+placeholder%3D%22Username%22+%2F%3E%0A++++++++%3Cinput+type%3D%22button%22+value%3D%22Check+Player%22+id%3D%22sendForm%22+class%3D%22who-blue%22%2F%3E%0A++++%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A%3C%2Fbody%3E%0A%3Cscript+src%3D%22jquery-1.10.1.min.js%22%3E%3C%2Fscript%3E%0A%3Cscript+type%3D%22text%2Fjavascript%22%3E%0A++++%24%28document%29.ready%28function+%28%29+%7B%0A++++++++%24%28%27%23sendForm%27%29.click%28function+%28%29+%7B%0A++++++++++++%24%28%27%23username%27%29.val%28%0A++++++++++++++++++++%22aa_%22+%2B+%24%28%27%23incompleteUsername%27%29.val%28%29%0A++++++++++++%29%3B%0A++++++++++++%24%28%27%23playerCheck%27%29.submit%28%29%3B%0A++++++++%7D%29%3B%0A++++%7D%29%3B%0A%3C%2Fscript%3E%0A%3C%2Fhtml%3E'
   71    23        ECHO                                                     !2
   72    24      > RETURN                                                   null

End of function renderview

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.98 ms | 1392 KiB | 17 Q