3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors',"1"); ini_set('display_startup_errors',"1"); ini_set('log_errors',"1"); ini_set('html_errors',"0"); /** * @copyright Alexey Kachalov <alex-kachalov@mail.ru> * @author Alexey Kachalov <alex-kachalov@mail.ru> * @access public * @see http://178.140.61.70/ * @license GNU Public Licence - Version 3 */ class core { public function __construct() { require_once(dirname(__FILE__).'/conf.class.php'); $this->conf = new conf($this); require_once(dirname(__FILE__).'/minecraftstatus.class.php'); $this->author(); } /** * Обновление статуса серверов * * @param [optional] * @param ... * @access public */ public function update() { $args = func_get_args(); if(sizeof($args)==0) { foreach($this->conf->list as $arg => $serv) { $this->get($serv['name'],$serv['host'],$serv['port'],$arg); } } else { if(sizeof($args)==1 and is_array($args[0])) { foreach($args[0] as $arg) { if(isset($this->conf->list[$arg])) { $serv = $this->conf->list[$arg]; $this->get($serv['name'],$serv['host'],$serv['port'],$arg); } } } else { foreach($args as $arg) { if(isset($this->conf->list[$arg])) { $serv = $this->conf->list[$arg]; $this->get($serv['name'],$serv['host'],$serv['port'],$arg); } } } } } /** * Получение статуса сервера и обновление картинки * * @access private * @param string $name название сервера(на картинке) * @param string $host ip сервера * @param string $port порт, который слушает сервер * @param $write[optional] Вывод(false) или запись(имя файла) картинки(по умолчанию false, то есть вывод) */ private function get($name, $host, $port, $write = false) { if(@$this->conf->cache[$write]['timestamp']<(time()-$this->conf->cachelife)) { $serv = new ms($host, $port, $this->conf->timeout); if($serv->Online) $this->pict($name, $serv->CurPlayers, $serv->MaxPlayers, $write); else $this->pict($name, 0, 0, $write); $this->conf->set_cache($write,array( 'timestamp'=>time(), 'min'=>$serv->CurPlayers, 'max'=>$serv->MaxPlayers )); } } public function author() { if(isset($_GET['author'])) die("Created by <a href='http://vk.com/ak1998'>Kachalov Alexey</a>(<a href='http://vk.com/kcraft'>KachalovCRAFT NET</a>)"); } /** * Рисование картинки * * @access private * @param string $name название сервера(на картинке) * @param int $current количество игроков в данный момент на сервере * @param int $max количество слотов * @param $write[optional] Вывод(false) или запись(имя файла) картинки(по умолчанию false, то есть вывод) * * FIXME: Рваные края статусбара */ private function pict($name, $current, $max, $write = false) { $imgbgfolder = $this->conf->sysf; $font = $imgbgfolder.$this->conf->font['name']; $fw = $this->conf->font['width']; $textcolor = $this->conf->font['color']; $prec_border = $this->conf->precent_border; $if_offline = $this->conf->if_server_off; $players_max = $max; $players = $current; if($players_max==0) { $players_max = 1; $players = $if_offline; } $prec = floor($players/$players_max*100); if($players>=$players_max) $prec = 100; $angle = floor($prec*360/100); $width = 132; $height = 132;/*img size*/ $im = imagecreatetruecolor($width, $height+30); $imbg1 = imagecreatefrompng($imgbgfolder.'bg.png'); $imbg2 = imagecreatefrompng($imgbgfolder.'bg2.png'); if($prec_border[0]>=$prec) { $imgcol = 'greenbar.png'; $barbg = 'greenbg.png'; } elseif($prec_border[1]>=$prec) { $imgcol = 'yellowbar.png'; $barbg = 'yellowbg.png'; } else { $imgcol = 'redbar.png'; $barbg = 'redbg.png'; } $imbg3 = imagecreatefrompng($imgbgfolder.$imgcol); $imbg4 = imagecreatefrompng($imgbgfolder.$barbg); imagefill($im, 0, 0, imagecolorallocatealpha($im,0, 0, 0, 127)); imagesavealpha($im, true); $fontsize = 16; $fh = 6; imagecopy ($im, $imbg1, 0, 0, 0, 0, $width, $height); imagecopy ($im, $imbg3, 0, 0, 0, 0, $width, $height); if($prec!=100)imagefilledarc($im, $height/2, $width/2, $height-17, $width-17, -90+$angle, -90, imagecolorallocate($im, 1, 1, 1), IMG_ARC_PIE); imagecopy ($im, $imbg2, 0, 0, 0, 0, $width, $height); imagecopy ($im, $imbg4, 0, 0, 0, 0, $width, $height); $tw1 = ($width - strlen($players)*$fw)/2; $curcolor1 = imagecolorallocate($im, $textcolor[0], $textcolor[1], $textcolor[2]); imagettftext($im, $fontsize, 0, $tw1, $width/2+$fh, $curcolor1, $font, $players); $tw2 = ($width - strlen($name)*($fw-2))/2; $curcolor2 = imagecolorallocate($im, $textcolor[0], $textcolor[1], $textcolor[2]); imagettftext($im, $fontsize, 0, $tw2, $width/2+$fh+80, $curcolor2, $font, $name); if($write==false) { //header('Content-Type: image/png'); imagepng($im); } else { imagepng($im, $imgbgfolder.'../cache/'.$write.'.png'); } imagedestroy($im); } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jnr5V
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 '1'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'display_startup_errors'
          6        SEND_VAL                                                 '1'
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'ini_set'
          9        SEND_VAL                                                 'log_errors'
         10        SEND_VAL                                                 '1'
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'ini_set'
         13        SEND_VAL                                                 'html_errors'
         14        SEND_VAL                                                 '0'
         15        DO_ICALL                                                 
  197    16      > RETURN                                                   1

Class core:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jnr5V
function name:  __construct
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'dirname'
          1        SEND_VAL                                                 '%2Fin%2FJnr5V'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      $0, '%2Fconf.class.php'
          4        INCLUDE_OR_EVAL                                          ~1, REQUIRE_ONCE
   18     5        NEW                                              $4      'conf'
          6        FETCH_THIS                                       $5      
          7        SEND_VAR_EX                                              $5
          8        DO_FCALL                                      0          
          9        ASSIGN_OBJ                                               'conf'
         10        OP_DATA                                                  $4
   20    11        INIT_FCALL                                               'dirname'
         12        SEND_VAL                                                 '%2Fin%2FJnr5V'
         13        DO_ICALL                                         $7      
         14        CONCAT                                           ~8      $7, '%2Fminecraftstatus.class.php'
         15        INCLUDE_OR_EVAL                                          ~8, REQUIRE_ONCE
   21    16        INIT_METHOD_CALL                                         'author'
         17        DO_FCALL                                      0          
   22    18      > RETURN                                                   null

End of function __construct

Function update:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 25
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 82
Branch analysis from position: 82
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 58
Branch analysis from position: 32
2 jumps found. (Code = 77) Position 1 = 34, Position 2 = 56
Branch analysis from position: 34
2 jumps found. (Code = 78) Position 1 = 35, Position 2 = 56
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 55
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
Branch analysis from position: 55
Branch analysis from position: 56
1 jumps found. (Code = 42) Position 1 = 82
Branch analysis from position: 82
Branch analysis from position: 56
Branch analysis from position: 58
2 jumps found. (Code = 77) Position 1 = 59, Position 2 = 81
Branch analysis from position: 59
2 jumps found. (Code = 78) Position 1 = 60, Position 2 = 81
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 80
Branch analysis from position: 64
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
Branch analysis from position: 80
Branch analysis from position: 81
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 81
Branch analysis from position: 31
filename:       /in/Jnr5V
function name:  update
number of ops:  83
compiled vars:  !0 = $args, !1 = $serv, !2 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   FUNC_GET_ARGS                                    ~3      
          1        ASSIGN                                                   !0, ~3
   34     2        COUNT                                            ~5      !0
          3        IS_EQUAL                                                 ~5, 0
          4      > JMPZ                                                     ~6, ->25
   36     5    >   FETCH_OBJ_R                                      ~7      'conf'
          6        FETCH_OBJ_R                                      ~8      ~7, 'list'
          7      > FE_RESET_R                                       $9      ~8, ->23
          8    > > FE_FETCH_R                                       ~10     $9, !1, ->23
          9    >   ASSIGN                                                   !2, ~10
   38    10        INIT_METHOD_CALL                                         'get'
         11        CHECK_FUNC_ARG                                           
         12        FETCH_DIM_FUNC_ARG                               $12     !1, 'name'
         13        SEND_FUNC_ARG                                            $12
         14        CHECK_FUNC_ARG                                           
         15        FETCH_DIM_FUNC_ARG                               $13     !1, 'host'
         16        SEND_FUNC_ARG                                            $13
         17        CHECK_FUNC_ARG                                           
         18        FETCH_DIM_FUNC_ARG                               $14     !1, 'port'
         19        SEND_FUNC_ARG                                            $14
         20        SEND_VAR_EX                                              !2
         21        DO_FCALL                                      0          
   36    22      > JMP                                                      ->8
         23    >   FE_FREE                                                  $9
         24      > JMP                                                      ->82
   43    25    >   COUNT                                            ~16     !0
         26        IS_EQUAL                                         ~17     ~16, 1
         27      > JMPZ_EX                                          ~17     ~17, ->31
         28    >   FETCH_DIM_R                                      ~18     !0, 0
         29        TYPE_CHECK                                  128  ~19     ~18
         30        BOOL                                             ~17     ~19
         31    > > JMPZ                                                     ~17, ->58
   45    32    >   FETCH_DIM_R                                      ~20     !0, 0
         33      > FE_RESET_R                                       $21     ~20, ->56
         34    > > FE_FETCH_R                                               $21, !2, ->56
   47    35    >   FETCH_OBJ_IS                                     ~22     'conf'
         36        FETCH_OBJ_IS                                     ~23     ~22, 'list'
         37        ISSET_ISEMPTY_DIM_OBJ                         0          ~23, !2
         38      > JMPZ                                                     ~24, ->55
   49    39    >   FETCH_OBJ_R                                      ~25     'conf'
         40        FETCH_OBJ_R                                      ~26     ~25, 'list'
         41        FETCH_DIM_R                                      ~27     ~26, !2
         42        ASSIGN                                                   !1, ~27
   50    43        INIT_METHOD_CALL                                         'get'
         44        CHECK_FUNC_ARG                                           
         45        FETCH_DIM_FUNC_ARG                               $29     !1, 'name'
         46        SEND_FUNC_ARG                                            $29
         47        CHECK_FUNC_ARG                                           
         48        FETCH_DIM_FUNC_ARG                               $30     !1, 'host'
         49        SEND_FUNC_ARG                                            $30
         50        CHECK_FUNC_ARG                                           
         51        FETCH_DIM_FUNC_ARG                               $31     !1, 'port'
         52        SEND_FUNC_ARG                                            $31
         53        SEND_VAR_EX                                              !2
         54        DO_FCALL                                      0          
   45    55    > > JMP                                                      ->34
         56    >   FE_FREE                                                  $21
         57      > JMP                                                      ->82
   56    58    > > FE_RESET_R                                       $33     !0, ->81
         59    > > FE_FETCH_R                                               $33, !2, ->81
   58    60    >   FETCH_OBJ_IS                                     ~34     'conf'
         61        FETCH_OBJ_IS                                     ~35     ~34, 'list'
         62        ISSET_ISEMPTY_DIM_OBJ                         0          ~35, !2
         63      > JMPZ                                                     ~36, ->80
   60    64    >   FETCH_OBJ_R                                      ~37     'conf'
         65        FETCH_OBJ_R                                      ~38     ~37, 'list'
         66        FETCH_DIM_R                                      ~39     ~38, !2
         67        ASSIGN                                                   !1, ~39
   61    68        INIT_METHOD_CALL                                         'get'
         69        CHECK_FUNC_ARG                                           
         70        FETCH_DIM_FUNC_ARG                               $41     !1, 'name'
         71        SEND_FUNC_ARG                                            $41
         72        CHECK_FUNC_ARG                                           
         73        FETCH_DIM_FUNC_ARG                               $42     !1, 'host'
         74        SEND_FUNC_ARG                                            $42
         75        CHECK_FUNC_ARG                                           
         76        FETCH_DIM_FUNC_ARG                               $43     !1, 'port'
         77        SEND_FUNC_ARG                                            $43
         78        SEND_VAR_EX                                              !2
         79        DO_FCALL                                      0          
   56    80    > > JMP                                                      ->59
         81    >   FE_FREE                                                  $33
   66    82    > > RETURN                                                   null

End of function update

Function get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 57
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 39
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
filename:       /in/Jnr5V
function name:  get
number of ops:  58
compiled vars:  !0 = $name, !1 = $host, !2 = $port, !3 = $write, !4 = $serv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   77     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      <false>
   79     4        BEGIN_SILENCE                                    ~5      
          5        FETCH_OBJ_R                                      ~6      'conf'
          6        FETCH_OBJ_R                                      ~7      ~6, 'cache'
          7        FETCH_DIM_R                                      ~8      ~7, !3
          8        FETCH_DIM_R                                      ~9      ~8, 'timestamp'
          9        END_SILENCE                                              ~5
         10        INIT_FCALL                                               'time'
         11        DO_ICALL                                         $10     
         12        FETCH_OBJ_R                                      ~11     'conf'
         13        FETCH_OBJ_R                                      ~12     ~11, 'cachelife'
         14        SUB                                              ~13     $10, ~12
         15        IS_SMALLER                                               ~9, ~13
         16      > JMPZ                                                     ~14, ->57
   81    17    >   NEW                                              $15     'ms'
         18        SEND_VAR_EX                                              !1
         19        SEND_VAR_EX                                              !2
         20        CHECK_FUNC_ARG                                           
         21        FETCH_OBJ_FUNC_ARG                               $16     'conf'
         22        FETCH_OBJ_FUNC_ARG                               $17     $16, 'timeout'
         23        SEND_FUNC_ARG                                            $17
         24        DO_FCALL                                      0          
         25        ASSIGN                                                   !4, $15
   83    26        FETCH_OBJ_R                                      ~20     !4, 'Online'
         27      > JMPZ                                                     ~20, ->39
   84    28    >   INIT_METHOD_CALL                                         'pict'
         29        SEND_VAR_EX                                              !0
         30        CHECK_FUNC_ARG                                           
         31        FETCH_OBJ_FUNC_ARG                               $21     !4, 'CurPlayers'
         32        SEND_FUNC_ARG                                            $21
         33        CHECK_FUNC_ARG                                           
         34        FETCH_OBJ_FUNC_ARG                               $22     !4, 'MaxPlayers'
         35        SEND_FUNC_ARG                                            $22
         36        SEND_VAR_EX                                              !3
         37        DO_FCALL                                      0          
         38      > JMP                                                      ->45
   86    39    >   INIT_METHOD_CALL                                         'pict'
         40        SEND_VAR_EX                                              !0
         41        SEND_VAL_EX                                              0
         42        SEND_VAL_EX                                              0
         43        SEND_VAR_EX                                              !3
         44        DO_FCALL                                      0          
   88    45    >   FETCH_OBJ_R                                      ~25     'conf'
         46        INIT_METHOD_CALL                                         ~25, 'set_cache'
         47        SEND_VAR_EX                                              !3
   89    48        INIT_FCALL                                               'time'
         49        DO_ICALL                                         $26     
         50        INIT_ARRAY                                       ~27     $26, 'timestamp'
   90    51        FETCH_OBJ_R                                      ~28     !4, 'CurPlayers'
         52        ADD_ARRAY_ELEMENT                                ~27     ~28, 'min'
   91    53        FETCH_OBJ_R                                      ~29     !4, 'MaxPlayers'
         54        ADD_ARRAY_ELEMENT                                ~27     ~29, 'max'
         55        SEND_VAL_EX                                              ~27
         56        DO_FCALL                                      0          
   94    57    > > RETURN                                                   null

End of function get

Function author:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jnr5V
function name:  author
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   98     0  E >   FETCH_IS                                         ~0      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~0, 'author'
          2      > JMPZ                                                     ~1, ->4
   99     3    > > EXIT                                                     'Created+by+%3Ca+href%3D%27http%3A%2F%2Fvk.com%2Fak1998%27%3EKachalov+Alexey%3C%2Fa%3E%28%3Ca+href%3D%27http%3A%2F%2Fvk.com%2Fkcraft%27%3EKachalovCRAFT+NET%3C%2Fa%3E%29'
  100     4    > > RETURN                                                   null

End of function author

Function pict:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 41
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 68, Position 2 = 71
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
2 jumps found. (Code = 43) Position 1 = 130, Position 2 = 153
Branch analysis from position: 130
2 jumps found. (Code = 43) Position 1 = 237, Position 2 = 241
Branch analysis from position: 237
1 jumps found. (Code = 42) Position 1 = 248
Branch analysis from position: 248
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 241
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 153
Branch analysis from position: 71
2 jumps found. (Code = 43) Position 1 = 74, Position 2 = 77
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 79
Branch analysis from position: 79
Branch analysis from position: 77
2 jumps found. (Code = 43) Position 1 = 130, Position 2 = 153
Branch analysis from position: 130
Branch analysis from position: 153
Branch analysis from position: 41
Branch analysis from position: 32
filename:       /in/Jnr5V
function name:  pict
number of ops:  252
compiled vars:  !0 = $name, !1 = $current, !2 = $max, !3 = $write, !4 = $imgbgfolder, !5 = $font, !6 = $fw, !7 = $textcolor, !8 = $prec_border, !9 = $if_offline, !10 = $players_max, !11 = $players, !12 = $prec, !13 = $angle, !14 = $width, !15 = $height, !16 = $im, !17 = $imbg1, !18 = $imbg2, !19 = $imgcol, !20 = $barbg, !21 = $imbg3, !22 = $imbg4, !23 = $fontsize, !24 = $fh, !25 = $tw1, !26 = $curcolor1, !27 = $tw2, !28 = $curcolor2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  113     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      <false>
  115     4        FETCH_OBJ_R                                      ~29     'conf'
          5        FETCH_OBJ_R                                      ~30     ~29, 'sysf'
          6        ASSIGN                                                   !4, ~30
  116     7        FETCH_OBJ_R                                      ~32     'conf'
          8        FETCH_OBJ_R                                      ~33     ~32, 'font'
          9        FETCH_DIM_R                                      ~34     ~33, 'name'
         10        CONCAT                                           ~35     !4, ~34
         11        ASSIGN                                                   !5, ~35
  117    12        FETCH_OBJ_R                                      ~37     'conf'
         13        FETCH_OBJ_R                                      ~38     ~37, 'font'
         14        FETCH_DIM_R                                      ~39     ~38, 'width'
         15        ASSIGN                                                   !6, ~39
  118    16        FETCH_OBJ_R                                      ~41     'conf'
         17        FETCH_OBJ_R                                      ~42     ~41, 'font'
         18        FETCH_DIM_R                                      ~43     ~42, 'color'
         19        ASSIGN                                                   !7, ~43
  119    20        FETCH_OBJ_R                                      ~45     'conf'
         21        FETCH_OBJ_R                                      ~46     ~45, 'precent_border'
         22        ASSIGN                                                   !8, ~46
  120    23        FETCH_OBJ_R                                      ~48     'conf'
         24        FETCH_OBJ_R                                      ~49     ~48, 'if_server_off'
         25        ASSIGN                                                   !9, ~49
  122    26        ASSIGN                                                   !10, !2
  123    27        ASSIGN                                                   !11, !1
  125    28        IS_EQUAL                                                 !10, 0
         29      > JMPZ                                                     ~53, ->32
  127    30    >   ASSIGN                                                   !10, 1
  128    31        ASSIGN                                                   !11, !9
  131    32    >   INIT_FCALL                                               'floor'
         33        DIV                                              ~56     !11, !10
         34        MUL                                              ~57     ~56, 100
         35        SEND_VAL                                                 ~57
         36        DO_ICALL                                         $58     
         37        ASSIGN                                                   !12, $58
  133    38        IS_SMALLER_OR_EQUAL                                      !10, !11
         39      > JMPZ                                                     ~60, ->41
  134    40    >   ASSIGN                                                   !12, 100
  136    41    >   INIT_FCALL                                               'floor'
         42        MUL                                              ~62     !12, 360
         43        DIV                                              ~63     ~62, 100
         44        SEND_VAL                                                 ~63
         45        DO_ICALL                                         $64     
         46        ASSIGN                                                   !13, $64
  137    47        ASSIGN                                                   !14, 132
         48        ASSIGN                                                   !15, 132
  138    49        INIT_FCALL_BY_NAME                                       'imagecreatetruecolor'
         50        SEND_VAR_EX                                              !14
         51        ADD                                              ~68     !15, 30
         52        SEND_VAL_EX                                              ~68
         53        DO_FCALL                                      0  $69     
         54        ASSIGN                                                   !16, $69
  139    55        INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
         56        CONCAT                                           ~71     !4, 'bg.png'
         57        SEND_VAL_EX                                              ~71
         58        DO_FCALL                                      0  $72     
         59        ASSIGN                                                   !17, $72
  140    60        INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
         61        CONCAT                                           ~74     !4, 'bg2.png'
         62        SEND_VAL_EX                                              ~74
         63        DO_FCALL                                      0  $75     
         64        ASSIGN                                                   !18, $75
  142    65        FETCH_DIM_R                                      ~77     !8, 0
         66        IS_SMALLER_OR_EQUAL                                      !12, ~77
         67      > JMPZ                                                     ~78, ->71
  144    68    >   ASSIGN                                                   !19, 'greenbar.png'
  145    69        ASSIGN                                                   !20, 'greenbg.png'
         70      > JMP                                                      ->79
  147    71    >   FETCH_DIM_R                                      ~81     !8, 1
         72        IS_SMALLER_OR_EQUAL                                      !12, ~81
         73      > JMPZ                                                     ~82, ->77
  149    74    >   ASSIGN                                                   !19, 'yellowbar.png'
  150    75        ASSIGN                                                   !20, 'yellowbg.png'
         76      > JMP                                                      ->79
  154    77    >   ASSIGN                                                   !19, 'redbar.png'
  155    78        ASSIGN                                                   !20, 'redbg.png'
  158    79    >   INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
         80        CONCAT                                           ~87     !4, !19
         81        SEND_VAL_EX                                              ~87
         82        DO_FCALL                                      0  $88     
         83        ASSIGN                                                   !21, $88
  159    84        INIT_FCALL_BY_NAME                                       'imagecreatefrompng'
         85        CONCAT                                           ~90     !4, !20
         86        SEND_VAL_EX                                              ~90
         87        DO_FCALL                                      0  $91     
         88        ASSIGN                                                   !22, $91
  161    89        INIT_FCALL_BY_NAME                                       'imagefill'
         90        SEND_VAR_EX                                              !16
         91        SEND_VAL_EX                                              0
         92        SEND_VAL_EX                                              0
         93        INIT_FCALL_BY_NAME                                       'imagecolorallocatealpha'
         94        SEND_VAR_EX                                              !16
         95        SEND_VAL_EX                                              0
         96        SEND_VAL_EX                                              0
         97        SEND_VAL_EX                                              0
         98        SEND_VAL_EX                                              127
         99        DO_FCALL                                      0  $93     
        100        SEND_VAR_NO_REF_EX                                       $93
        101        DO_FCALL                                      0          
  163   102        INIT_FCALL_BY_NAME                                       'imagesavealpha'
        103        SEND_VAR_EX                                              !16
        104        SEND_VAL_EX                                              <true>
        105        DO_FCALL                                      0          
  165   106        ASSIGN                                                   !23, 16
  166   107        ASSIGN                                                   !24, 6
  168   108        INIT_FCALL_BY_NAME                                       'imagecopy'
        109        SEND_VAR_EX                                              !16
        110        SEND_VAR_EX                                              !17
        111        SEND_VAL_EX                                              0
        112        SEND_VAL_EX                                              0
        113        SEND_VAL_EX                                              0
        114        SEND_VAL_EX                                              0
        115        SEND_VAR_EX                                              !14
        116        SEND_VAR_EX                                              !15
        117        DO_FCALL                                      0          
  169   118        INIT_FCALL_BY_NAME                                       'imagecopy'
        119        SEND_VAR_EX                                              !16
        120        SEND_VAR_EX                                              !21
        121        SEND_VAL_EX                                              0
        122        SEND_VAL_EX                                              0
        123        SEND_VAL_EX                                              0
        124        SEND_VAL_EX                                              0
        125        SEND_VAR_EX                                              !14
        126        SEND_VAR_EX                                              !15
        127        DO_FCALL                                      0          
  171   128        IS_NOT_EQUAL                                             !12, 100
        129      > JMPZ                                                     ~100, ->153
        130    >   INIT_FCALL_BY_NAME                                       'imagefilledarc'
        131        SEND_VAR_EX                                              !16
        132        DIV                                        

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
277.93 ms | 1428 KiB | 22 Q