3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Nette\Application\UI\Form; use Nette\Utils\Strings; final class PagePresenter extends BasePresenter { public function startup() { parent::startup(); } public function beforeRender() { parent::beforeRender(); } // AJAX public function handleAjax() { $this->template->prom = 'Hodnota poslaná AJAXem.'; $this->redrawControl();//překreslíme komponentu } public function renderAjax() { //tato metoda se provádí vždy, proto musíme zamezit přepsání hodnoty z handle if (! $this->isAjax()) { $this->template->prom = 'Výchozí hodnota.'; } } // HOMEPAGE public function actionHome($id) { $this->template->nette = \Nette\Framework::NAME.' '.\Nette\Framework::VERSION.' ('.\Nette\Framework::REVISION.')'; } // SLEEP COUNTER protected function createComponentTimeCountDownForm() { $form = new Form; $form->addText('sleepHours', NULL) ->setType('number') ->setDefaultValue(date('G')) ->addRule(Form::RANGE, 'Povolené hodnoty jsou 0 až 23', array(0, 23)); $form->addText('sleepMinutes', NULL) ->setType('number') ->setDefaultValue(date('i')) ->addRule(Form::RANGE, 'Povolené hodnoty jsou 0 až 23', array(0, 60)); $form->addText('getupHours', NULL) ->setType('number') ->setType('number') ->addRule(Form::RANGE, 'Povolené hodnoty jsou 0 až 23', array(0, 23)); $form->addText('getupMinutes', NULL) ->setType('number') ->addRule(Form::RANGE, 'Povolené hodnoty jsou 0 až 23', array(0, 60)); $cookie = $this->getHttpRequest()->getCookie('sleepCounter'); if ($cookie) { list($dH, $dM) = explode(';', $cookie); $form->setDefaults(array( 'getupHours' => $dH, 'getupMinutes' => $dM )); } $form->addSubmit('count', 'Vypočítat'); $form->onSuccess[] = callback($this, 'processTimeCountDown'); return $form; } public function processTimeCountDown(Form $form) { $values = $form->getValues(); $add = 0; $start = new Datetime(); $start->setTime($values->sleepHours, $values->sleepMinutes); $end = new Datetime(); $end->setTime($values->getupHours, $values->getupMinutes); if (time() > $end->getTimestamp()) { $end->add(new DateInterval('P'.($add + 1).'D')); } $dd = date_diff($start, $end); $this->getHttpResponse()->setCookie('sleepCounter', "{$values->getupHours};{$values->getupMinutes}", '+ 100 days'); $this->flashMessage("Vstávat budete za " .($dd->h != 0 ? ("{$dd->h} hodin".($dd->h == 1 ? 'u' : ($dd->h <= 4 ? 'y' : ''))).' a ' : '') ."{$dd->i} minut".($dd->i == 1 ? 'u' : ($dd->i <= 4 && $dd->i > 0 ? 'y' : '')) , 'info'); } // NETTE DETECTOR protected function createComponentNetteWebChecker() { $form = new Form; $form->setMethod('GET'); $form->addText('url', 'URL adresa: ') ->addRule(Form::URL, 'URL má špatný tvar'); $form->addText('test', NULL) ->addRule(~Form::FILLED, 'Tento formulář není pro vás..') ->setAttribute('style', 'display: none'); $form->addSubmit('check', 'Zjisti to'); $form->onSuccess[] = callback($this, 'processNetteWebChecker'); return $form; } public function processNetteWebChecker(Form $form) { $url = $form->values->url; if (! preg_match('~http(s)?://~i', $url)) { $url = "http://$url"; } $headers = @get_headers($url, TRUE);//dump($headers); $status = NULL; $poweredBy = ''; if (isset($headers['X-Powered-By'])) { $poweredBy = strval(is_array($headers['X-Powered-By']) ? $headers['X-Powered-By'][0] : $headers['X-Powered-By']); } if (! $headers) { $status = 'error'; $this->flashMessage ('Tento web neexistuje.', 'danger'); } else if (strtolower($poweredBy) == 'nette framework') { $status = 'yes'; $this->flashMessage('Ano, stránka '.$url.' opravdu běží na <strong>Nette Frameworku</strong>!', 'success'); } else { $status = 'no'; $this->flashMessage ('Bohužel, stránka '.$url.' <strong>zatím</strong> Nette Framework nepoužívá.', 'danger'); } $this->db->table('nette_detector')->insert(array( 'nette' => $status, 'url' => $url, 'when' => new \DateTime('now'), 'userAgent' => $_SERVER['HTTP_USER_AGENT'], 'poweredBy' => $poweredBy, 'ip' => $_SERVER['REMOTE_ADDR'], 'hostname' => getHostByAddr($_SERVER['REMOTE_ADDR']) )); } // NETTE DETECTOR RECORDS public function renderDetectorShow() { $this->template->list = $this->db->table('nette_detector') ->order('`when` DESC') ->select('*') ->fetchAll(); } // TEXT ANALYZER protected function createComponentTextForm() { $form = new Form; $form->addTextArea('text', NULL) ->setRequired('Zadejte text k analýze'); $form->addSubmit('analyze', 'Analyzovat'); $form->onSuccess[] = callback($this, 'processTextForm'); return $form; } public function processTextForm(Form $form) { $text = $form->values->text; @file_put_contents('./texts/'.time().'.txt', implode('|||',array( 'ip' => $_SERVER['REMOTE_ADDR'], 'dns' => getHostByAddr($_SERVER['REMOTE_ADDR']), 'userAgent' => $_SERVER['HTTP_USER_AGENT'] ))."\n\n".$text); $splitWords = preg_split('~([;,!\?:/"\(\)])|(\s+)|(\.\s)~', $text); $words = array(); $stat = new Nette\ArrayHash(); $stat->repeatedWords = array(); foreach ($splitWords as & $str) { $str = trim(Strings::lower($str)); if ($str == '' || ! Strings::match($str, '~\p{L}~ui')) { unset($str); continue; } $words[] = $str; $stat->repeatedWords[$str] = array_key_exists($str, $stat->repeatedWords) ? $stat->repeatedWords[$str] + 1 : 1; } $stat->wordCount = count($words); arsort($stat->repeatedWords); $stat->paragraphCount = count(Strings::matchAll($text, '~(\n\n[\s]?)~ism')) + 1; $stat->length = Strings::length($text); $stat->whitespaceCount = mb_substr_count($text, " ", 'UTF-8') + mb_substr_count($text, "\n", 'UTF-8'); $stat->whitespaceCountPercent = 100 / $stat->length * $stat->whitespaceCount; $stat->ns = $stat->length / 1800; $stat->dotCount = mb_substr_count($text, '.', 'UTF-8'); $stat->exclamationMarkCount = mb_substr_count($text, '!', 'UTF-8'); $stat->pointCount = mb_substr_count($text, ',', 'UTF-8'); $stat->interrogationCount = mb_substr_count($text, '?', 'UTF-8'); $stat->semicolonCount = mb_substr_count($text, ';', 'UTF-8'); $stat->hyphenCount = mb_substr_count($text, '-', 'UTF-8'); $this->template->stat = $stat; } // PHP INFO public function renderPhpinfo() { $this->setLayout(FALSE); } public function renderErrorUrlList() { $this->template->errors = $this->db->table('url_error')->order('`when` DESC')->fetchAll(); } // STRING TOOLS protected function createComponentStringToolForm() { $form = new Form; $form->addTextArea('data', 'Data: ') ->setAttribute('class', 'form-control') ->setAttribute('style', 'width: 600px; height: 200px;'); $form->addSelect('func', 'Akce: ', array( 'JSON' => array( 'json_encode' => 'Zakódovat', 'json_decode' => 'Dekódovat' ), 'URL' => array( 'urlencode' => 'Zakódovat', 'urldecode' => 'Dekódovat', 'rawurlencode' => 'Zakódovat RAW', 'rawurldecode' => 'Dekódovat RAW' ), 'BASE 64' => array( 'base64_encode' => 'Zakódovat', 'base64_decode' => 'Dekódovat' ), 'Hashe' => array( 'sha1' => 'SHA1', 'md5' => 'MD5' ))) ->setAttribute('class', 'form-control') ->setAttribute('style', 'width: 150px;'); $form->addSubmit('convert', 'Provést') ->setAttribute('class', 'btn btn-success'); $form->onSuccess[] = $this->processStringToolForm; return $form; } public function processStringToolForm(Form $form) { $func = $form->values->func; $result = $func($form->values->data); if ($result === FALSE || is_null($result)) { $this->flashMessage('Chyba při zpracování, zřejmě vkládáte nevalidní formát', 'danger'); } else { $result = is_array($result) || is_object($result) ? var_export((array)$result, TRUE) : strval($result); $form['data']->setValue($result); } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PHr6
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'pagepresenter', 'basepresenter'
  310     1      > RETURN                                                   1

Class PagePresenter:
Function startup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PHr6
function name:  startup
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_STATIC_METHOD_CALL                                  'startup'
          1        DO_FCALL                                      0          
   11     2      > RETURN                                                   null

End of function startup

Function beforerender:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PHr6
function name:  beforeRender
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'beforeRender'
          1        DO_FCALL                                      0          
   16     2      > RETURN                                                   null

End of function beforerender

Function handleajax:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PHr6
function name:  handleAjax
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   FETCH_OBJ_W                                      $0      'template'
          1        ASSIGN_OBJ                                               $0, 'prom'
          2        OP_DATA                                                  'Hodnota+poslan%C3%A1+AJAXem.'
   22     3        INIT_METHOD_CALL                                         'redrawControl'
          4        DO_FCALL                                      0          
   23     5      > RETURN                                                   null

End of function handleajax

Function renderajax:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/0PHr6
function name:  renderAjax
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   INIT_METHOD_CALL                                         'isAjax'
          1        DO_FCALL                                      0  $0      
          2        BOOL_NOT                                         ~1      $0
          3      > JMPZ                                                     ~1, ->7
   29     4    >   FETCH_OBJ_W                                      $2      'template'
          5        ASSIGN_OBJ                                               $2, 'prom'
          6        OP_DATA                                                  'V%C3%BDchoz%C3%AD+hodnota.'
   31     7    > > RETURN                                                   null

End of function renderajax

Function actionhome:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PHr6
function name:  actionHome
number of ops:  13
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   RECV                                             !0      
   36     1        FETCH_CLASS_CONSTANT                             ~3      'Nette%5CFramework', 'NAME'
          2        CONCAT                                           ~4      ~3, '+'
          3        FETCH_CLASS_CONSTANT                             ~5      'Nette%5CFramework', 'VERSION'
          4        CONCAT                                           ~6      ~4, ~5
          5        CONCAT                                           ~7      ~6, '+%28'
          6        FETCH_CLASS_CONSTANT                             ~8      'Nette%5CFramework', 'REVISION'
          7        CONCAT                                           ~9      ~7, ~8
          8        CONCAT                                           ~10     ~9, '%29'
          9        FETCH_OBJ_W                                      $1      'template'
         10        ASSIGN_OBJ                                               $1, 'nette'
         11        OP_DATA                                                  ~10
   37    12      > RETURN                                                   null

End of function actionhome

Function createcomponenttimecountdownform:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 77, Position 2 = 91
Branch analysis from position: 77
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 91
filename:       /in/0PHr6
function name:  createComponentTimeCountDownForm
number of ops:  105
compiled vars:  !0 = $form, !1 = $cookie, !2 = $dH, !3 = $dM
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   42     0  E >   NEW                                              $4      'Nette%5CApplication%5CUI%5CForm'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   44     3        INIT_METHOD_CALL                                         !0, 'addText'
          4        SEND_VAL_EX                                              'sleepHours'
          5        SEND_VAL_EX                                              null
          6        DO_FCALL                                      0  $7      
   45     7        INIT_METHOD_CALL                                         $7, 'setType'
          8        SEND_VAL_EX                                              'number'
          9        DO_FCALL                                      0  $8      
   46    10        INIT_METHOD_CALL                                         $8, 'setDefaultValue'
         11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'G'
         13        DO_ICALL                                         $9      
         14        SEND_VAR_NO_REF_EX                                       $9
         15        DO_FCALL                                      0  $10     
   47    16        INIT_METHOD_CALL                                         $10, 'addRule'
         17        FETCH_CLASS_CONSTANT                             ~11     'Nette%5CApplication%5CUI%5CForm', 'RANGE'
         18        SEND_VAL_EX                                              ~11
         19        SEND_VAL_EX                                              'Povolen%C3%A9+hodnoty+jsou+0+a%C5%BE+23'
         20        SEND_VAL_EX                                              <array>
         21        DO_FCALL                                      0          
   49    22        INIT_METHOD_CALL                                         !0, 'addText'
         23        SEND_VAL_EX                                              'sleepMinutes'
         24        SEND_VAL_EX                                              null
         25        DO_FCALL                                      0  $13     
   50    26        INIT_METHOD_CALL                                         $13, 'setType'
         27        SEND_VAL_EX                                              'number'
         28        DO_FCALL                                      0  $14     
   51    29        INIT_METHOD_CALL                                         $14, 'setDefaultValue'
         30        INIT_FCALL                                               'date'
         31        SEND_VAL                                                 'i'
         32        DO_ICALL                                         $15     
         33        SEND_VAR_NO_REF_EX                                       $15
         34        DO_FCALL                                      0  $16     
   52    35        INIT_METHOD_CALL                                         $16, 'addRule'
         36        FETCH_CLASS_CONSTANT                             ~17     'Nette%5CApplication%5CUI%5CForm', 'RANGE'
         37        SEND_VAL_EX                                              ~17
         38        SEND_VAL_EX                                              'Povolen%C3%A9+hodnoty+jsou+0+a%C5%BE+23'
         39        SEND_VAL_EX                                              <array>
         40        DO_FCALL                                      0          
   54    41        INIT_METHOD_CALL                                         !0, 'addText'
         42        SEND_VAL_EX                                              'getupHours'
         43        SEND_VAL_EX                                              null
         44        DO_FCALL                                      0  $19     
   55    45        INIT_METHOD_CALL                                         $19, 'setType'
         46        SEND_VAL_EX                                              'number'
         47        DO_FCALL                                      0  $20     
   56    48        INIT_METHOD_CALL                                         $20, 'setType'
         49        SEND_VAL_EX                                              'number'
         50        DO_FCALL                                      0  $21     
   57    51        INIT_METHOD_CALL                                         $21, 'addRule'
         52        FETCH_CLASS_CONSTANT                             ~22     'Nette%5CApplication%5CUI%5CForm', 'RANGE'
         53        SEND_VAL_EX                                              ~22
         54        SEND_VAL_EX                                              'Povolen%C3%A9+hodnoty+jsou+0+a%C5%BE+23'
         55        SEND_VAL_EX                                              <array>
         56        DO_FCALL                                      0          
   59    57        INIT_METHOD_CALL                                         !0, 'addText'
         58        SEND_VAL_EX                                              'getupMinutes'
         59        SEND_VAL_EX                                              null
         60        DO_FCALL                                      0  $24     
   60    61        INIT_METHOD_CALL                                         $24, 'setType'
         62        SEND_VAL_EX                                              'number'
         63        DO_FCALL                                      0  $25     
   61    64        INIT_METHOD_CALL                                         $25, 'addRule'
         65        FETCH_CLASS_CONSTANT                             ~26     'Nette%5CApplication%5CUI%5CForm', 'RANGE'
         66        SEND_VAL_EX                                              ~26
         67        SEND_VAL_EX                                              'Povolen%C3%A9+hodnoty+jsou+0+a%C5%BE+23'
         68        SEND_VAL_EX                                              <array>
         69        DO_FCALL                                      0          
   63    70        INIT_METHOD_CALL                                         'getHttpRequest'
         71        DO_FCALL                                      0  $28     
         72        INIT_METHOD_CALL                                         $28, 'getCookie'
         73        SEND_VAL_EX                                              'sleepCounter'
         74        DO_FCALL                                      0  $29     
         75        ASSIGN                                                   !1, $29
   65    76      > JMPZ                                                     !1, ->91
   67    77    >   INIT_FCALL                                               'explode'
         78        SEND_VAL                                                 '%3B'
         79        SEND_VAR                                                 !1
         80        DO_ICALL                                         $31     
         81        FETCH_LIST_R                                     $32     $31, 0
         82        ASSIGN                                                   !2, $32
         83        FETCH_LIST_R                                     $34     $31, 1
         84        ASSIGN                                                   !3, $34
         85        FREE                                                     $31
   68    86        INIT_METHOD_CALL                                         !0, 'setDefaults'
   69    87        INIT_ARRAY                                       ~36     !2, 'getupHours'
   70    88        ADD_ARRAY_ELEMENT                                ~36     !3, 'getupMinutes'
         89        SEND_VAL_EX                                              ~36
         90        DO_FCALL                                      0          
   74    91    >   INIT_METHOD_CALL                                         !0, 'addSubmit'
         92        SEND_VAL_EX                                              'count'
         93        SEND_VAL_EX                                              'Vypo%C4%8D%C3%ADtat'
         94        DO_FCALL                                      0          
   76    95        INIT_FCALL_BY_NAME                                       'callback'
         96        FETCH_THIS                                       $41     
         97        SEND_VAR_EX                                              $41
         98        SEND_VAL_EX                                              'processTimeCountDown'
         99        DO_FCALL                                      0  $42     
        100        FETCH_OBJ_W                                      $39     !0, 'onSuccess'
        101        ASSIGN_DIM                                               $39
        102        OP_DATA                                                  $42
   78   103      > RETURN                                                   !0
   79   104*     > RETURN                                                   null

End of function createcomponenttimecountdownform

Function processtimecountdown:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 42
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 82
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 71
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 83
Branch analysis from position: 83
2 jumps found. (Code = 43) Position 1 = 91, Position 2 = 93
Branch analysis from position: 91
1 jumps found. (Code = 42) Position 1 = 104
Branch analysis from position: 104
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 93
2 jumps found. (Code = 46) Position 1 = 96, Position 2 = 99
Branch analysis from position: 96
2 jumps found. (Code = 43) Position 1 = 100, Position 2 = 102
Branch analysis from position: 100
1 jumps found. (Code = 42) Position 1 = 103
Branch analysis from position: 103
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 102
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 99
Branch analysis from position: 71
2 jumps found. (Code = 43) Position 1 = 74, Position 2 = 76
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 83
Branch analysis from position: 83
Branch analysis from position: 76
1 jumps found. (Code = 42) Position 1 = 83
Branch analysis from position: 83
Branch analysis from position: 82
2 jumps found. (Code = 43) Position 1 = 91, Position 2 = 93
Branch analysis from position: 91
Branch analysis from position: 93
Branch analysis from position: 42
filename:       /in/0PHr6
function name:  processTimeCountDown
number of ops:  109
compiled vars:  !0 = $form, !1 = $values, !2 = $add, !3 = $start, !4 = $end, !5 = $dd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   81     0  E >   RECV                                             !0      
   83     1        INIT_METHOD_CALL                                         !0, 'getValues'
          2        DO_FCALL                                      0  $6      
          3        ASSIGN                                                   !1, $6
   84     4        ASSIGN                                                   !2, 0
   86     5        NEW                                              $9      'Datetime'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !3, $9
   87     8        INIT_METHOD_CALL                                         !3, 'setTime'
          9        CHECK_FUNC_ARG                                           
         10        FETCH_OBJ_FUNC_ARG                               $12     !1, 'sleepHours'
         11        SEND_FUNC_ARG                                            $12
         12        CHECK_FUNC_ARG                                           
         13        FETCH_OBJ_FUNC_ARG                               $13     !1, 'sleepMinutes'
         14        SEND_FUNC_ARG                                            $13
         15        DO_FCALL                                      0          
   89    16        NEW                                              $15     'Datetime'
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !4, $15
   90    19        INIT_METHOD_CALL                                         !4, 'setTime'
         20        CHECK_FUNC_ARG                                           
         21        FETCH_OBJ_FUNC_ARG                               $18     !1, 'getupHours'
         22        SEND_FUNC_ARG                                            $18
         23        CHECK_FUNC_ARG                                           
         24        FETCH_OBJ_FUNC_ARG                               $19     !1, 'getupMinutes'
         25        SEND_FUNC_ARG                                            $19
         26        DO_FCALL                                      0          
   92    27        INIT_FCALL                                               'time'
         28        DO_ICALL                                         $21     
         29        INIT_METHOD_CALL                                         !4, 'getTimestamp'
         30        DO_FCALL                                      0  $22     
         31        IS_SMALLER                                               $22, $21
         32      > JMPZ                                                     ~23, ->42
   93    33    >   INIT_METHOD_CALL                                         !4, 'add'
         34        NEW                                              $24     'DateInterval'
         35        ADD                                              ~25     !2, 1
         36        CONCAT                                           ~26     'P', ~25
         37        CONCAT                                           ~27     ~26, 'D'
         38        SEND_VAL_EX                                              ~27
         39        DO_FCALL                                      0          
         40        SEND_VAR_NO_REF_EX                                       $24
         41        DO_FCALL                                      0          
   96    42    >   INIT_FCALL                                               'date_diff'
         43        SEND_VAR                                                 !3
         44        SEND_VAR                                                 !4
         45        DO_ICALL                                         $30     
         46        ASSIGN                                                   !5, $30
   98    47        INIT_METHOD_CALL                                         'getHttpResponse'
         48        DO_FCALL                                      0  $32     
         49        INIT_METHOD_CALL                                         $32, 'setCookie'
         50        SEND_VAL_EX                                              'sleepCounter'
         51        FETCH_OBJ_R                                      ~33     !1, 'getupHours'
         52        ROPE_INIT                                     3  ~36     ~33
         53        ROPE_ADD                                      1  ~36     ~36, '%3B'
         54        FETCH_OBJ_R                                      ~34     !1, 'getupMinutes'
         55        ROPE_END                                      2  ~35     ~36, ~34
         56        SEND_VAL_EX                                              ~35
         57        SEND_VAL_EX                                              '%2B+100+days'
         58        DO_FCALL                                      0          
  100    59        INIT_METHOD_CALL                                         'flashMessage'
  101    60        FETCH_OBJ_R                                      ~39     !5, 'h'
         61        IS_NOT_EQUAL                                             ~39, 0
         62      > JMPZ                                                     ~40, ->82
         63    >   FETCH_OBJ_R                                      ~41     !5, 'h'
         64        NOP                                                      
         65        FAST_CONCAT                                      ~42     ~41, '+hodin'
         66        FETCH_OBJ_R                                      ~43     !5, 'h'
         67        IS_EQUAL                                                 ~43, 1
         68      > JMPZ                                                     ~44, ->71
         69    >   QM_ASSIGN                                        ~45     'u'
         70      > JMP                                                      ->78
         71    >   FETCH_OBJ_R                                      ~46     !5, 'h'
         72        IS_SMALLER_OR_EQUAL                                      ~46, 4
         73      > JMPZ                                                     ~47, ->76
         74    >   QM_ASSIGN                                        ~48     'y'
         75      > JMP                                                      ->77
         76    >   QM_ASSIGN                                        ~48     ''
         77    >   QM_ASSIGN                                        ~45     ~48
         78    >   CONCAT                                           ~49     ~42, ~45
         79        CONCAT                                           ~50     ~49, '+a+'
         80        QM_ASSIGN                                        ~51     ~50
         81      > JMP                                                      ->83
         82    >   QM_ASSIGN                                        ~51     ''
         83    >   CONCAT                                           ~52     'Vst%C3%A1vat+budete+za+', ~51
  102    84        FETCH_OBJ_R                                      ~53     !5, 'i'
         85        NOP                                                      
         86        FAST_CONCAT                                      ~54     ~53, '+minut'
         87        CONCAT                                           ~55     ~52, ~54
         88        FETCH_OBJ_R                                      ~56     !5, 'i'
         89        IS_EQUAL                                                 ~56, 1
         90      > JMPZ                                                     ~57, ->93
         91    >   QM_ASSIGN                                        ~58     'u'
         92      > JMP                                                      ->104
         93    >   FETCH_OBJ_R                                      ~59     !5, 'i'
         94        IS_SMALLER_OR_EQUAL                              ~60     ~59, 4
         95      > JMPZ_EX                                          ~60     ~60, ->99
         96    >   FETCH_OBJ_R                                      ~61     !5, 'i'
         97        IS_SMALLER                                       ~62     0, ~61
         98        BOOL                                             ~60     ~62
         99    > > JMPZ                                                     ~60, ->102
        100    >   QM_ASSIGN                                        ~63     'y'
        101      > JMP                                                      ->103
        102    >   QM_ASSIGN                                        ~63     ''
        103    >   QM_ASSIGN                                        ~58     ~63
        104    >   CONCAT                                           ~64     ~55, ~58
        105        SEND_VAL_EX                                              ~64
  103   106        SEND_VAL_EX                                              'info'
        107        DO_FCALL                                      0          
  104   108      > RETURN                                                   null

End of function processtimecountdown

Function createcomponentnettewebchecker:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0PHr6
function name:  createComponentNetteWebChecker
number of ops:  43
compiled vars:  !0 = $form
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  109     0  E >   NEW                                              $1      'Nette%5CApplication%5CUI%5CForm'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
  111     3        INIT_METHOD_CALL                                         !0, 'setMethod'
          4        SEND_VAL_EX                                              'GET'
          5        DO_FCALL                                      0          
  113     6        INIT_METHOD_CALL                                         !0, 'addText'
          7        SEND_VAL_EX                                              'url'
          8        SEND_VAL_EX                                              'URL+adresa%3A+'
          9        DO_FCALL                                      0  $5      
  114    10        INIT_METHOD_CALL                                         $5, 'addRule'
         11        FETCH_CLASS_CONSTANT                             ~6      'Nette%5CApplication%5CUI%5CForm', 'URL'
         12        SEND_VAL_EX                                              ~6
         13        SEND_VAL_EX                                              'URL+m%C3%A1+%C5%A1patn%C3%BD+tvar'
         14        DO_FCALL                                      0          
  116    15        INIT_METHOD_CALL                                         !0, 'addText'
         16        SEND_VAL_EX                                              'test'
         17        SEND_VAL_EX                                              null
         18        DO_FCALL                                      0  $8      
  117    19        INIT_METHOD_CALL                                         $8, 'addRule'
         20        FETCH_CLASS_CONSTANT                             ~9      'Nette%5CApplication%5CUI%5CForm', 'FILLED'
         21        BW_NOT                                           ~10     ~9
         22        SEND_VAL_EX                                              ~10
         23        SEND_VAL_EX                                              'Tento+formul%C3%A1%C5%99+nen%C3%AD+pro+v%C3%A1s..'
         24        DO_FCALL                                      0  $11     
  118    25        INIT_METHOD_CALL                                         $11, 'setAttribute'
         26        SEND_VAL_EX                                              'style'
         27        SEND_VAL_EX                                              'display%3A+none'
         28        DO_FCALL                                      0          
  120    29        INIT_METHOD_CALL                                         !0, 'addSubmit'
         30        SEND_VAL_EX                                              'check'
         31        SEND_VAL_EX                                              'Zjisti+to'
         32        DO_FCALL                                      0          
  122    33        INIT_FCALL_BY_NAME                                       'callback'
         34        FETCH_THIS                                       $16     
         35        SEND_VAR_EX                                              $16
         36        SEND_VAL_EX                                              'processNetteWebChecker'
         37        DO_FCALL                                      0  $17     
         38        FETCH_OBJ_W                                      $14     !0, 'onSuccess'
         39        ASSIGN_DIM                                               $14
         40        OP_DATA                                                  $17
  124    41      > RETURN                                                   !0
  125    42*     > RETURN                                                   null

End of function createcomponentnettewebchecker

Function processnettewebchecker:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 35
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 43
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 56
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
Branch analysis from position: 56
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 43
Branch analysis from position: 37
Branch analysis from position: 43
Branch analysis from position: 35
Branch analysis from position: 13
filename:       /in/0PHr6
function name:  processNetteWebChecker
number of ops:  90
compiled vars:  !0 = $form, !1 = $url, !2 = $headers, !3 = $status, !4 = $poweredBy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  127     0  E >   RECV                                             !0      
  129     1        FETCH_OBJ_R                                      ~5      !0, 'values'
          2        FETCH_OBJ_R                                      ~6      ~5, 'url'
          3        ASSIGN                                                   !1, ~6
  131     4        INIT_FCALL                                               'preg_m

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
250.84 ms | 1428 KiB | 25 Q