3v4l.org

run code in 500+ PHP versions simultaneously
<?php header("Content-Type: text/plain; charset=utf-8"); //b_internal_encoding('utf-8'); class Departament { public function __construct($name) //создаём департамент { $this->name = $name; } public function countEmployees($employees) //число сотрудников в департаменте { $countEmployees=0; foreach ($employees as $employee) { $countEmployees+= $employee->quantity; } echo "Число сотрудников: {$countEmployees}\n\n\n"; } public function getSalaryAllEmployees($employees) //посчитать зарплату всех сотрудников этого департамента { $totalSalary=0; foreach ($employees as $employee) { $totalSalary+=$employee->getSalary($employee) * $employee->quantity; } echo "Общая Зарплата по этому департаменту:".round($totalSalary)."\n"; return $totalSalary; } public function getCoffeAll($employees) //расходы на кофе по этому департаменту { $countCoffe = 0; foreach ($employees as $employee) { $countCoffe+= $employee->getCoffe($employee) * $employee->quantity; } echo "Кол-во выпитого коффе = {$countCoffe}\n"; return $countCoffe; } public function getPageAll($employees) //Число страниц документов и отчетов, которые производит этот департамент { $countPage = 0; foreach ($employees as $employee) { $countPage+= $employee->page * $employee->quantity; } echo "Всего страниц этого депа: {$countPage}\n"; return $countPage; } public function getAll($object, $employees) { $this->getSalaryAllEmployees($employees); $this->getCoffeAll($employees); $this->getPageAll($employees); $this->countEmployees($employees); } } class EmployeeGroup { public $position; public $coffe; public $page; public $rank; public $boss = false; public $baseSalary; public $quantity; public function getSalary($employee) //Посчитать зарплату отдельного работника с учётом ранга. Возвращает работник->$baseSalary. { switch($employee->rank) { case 1: $employee->baseSalary;//Ранг 1, зп по дефолту break; case 2: $employee->baseSalary+=($employee->baseSalary)*25/100; //Ранг 2, прибавляем к з/п 25% break; case 3: $employee->baseSalary+=($employee->baseSalary)*50/100;//Ранг 3, прибавляем к з/п 50% break; default: echo "Error. Switch, class EmployeeGroup, неверно задан ранг."; } If ($employee->boss == true) { $employee->baseSalary+=($employee->baseSalary)*50/100;//Босс, прибавляем к з/п 50%(+за ранг отдельно накидывается) } return $employee->baseSalary; } public function getCoffe($employee) //Сколько кофе выпили сотрудники. Босс пьёт в два раза больше. { If ($employee->boss == true) { $employee->coffe*=2; return $employee->coffe; } else { return $employee->coffe; } } //Создаём сотрудника: профессия, ранг, босс(bool), кофе, страницы, оклад, название депортамента. public function __construct($position, $rank, $boss, $coffe, $page, $baseSalary, $quantity) { $this->position = $position; $this->rank = $rank; $this->boss = $boss; $this->coffe = $coffe; $this->page = $page; $this->baseSalary = $baseSalary; $this->quantity = $quantity; } } $procurement = new Departament("Закупки");// Создаём департамент ЗАКУПОК. //Создаём сотрудника: профессия, ранг, босс(bool), кофе, страницы, оклад, кол-во сотрудников этого типа.. $procurementEmp[] = new EmployeeGroup("Менеджер", 1, false, 20, 200, 500, 9); //9 сотрудников ме1 $procurementEmp[] = new EmployeeGroup("Менеджер", 2, false, 20, 200, 500, 3); //3 сотрудника ме2 $procurementEmp[] = new EmployeeGroup("Менеджер", 3, false, 20, 200, 500, 2); //2 сотрудника ме3 $procurementEmp[] = new EmployeeGroup("Маркетолог", 1, false, 15, 150, 400, 2); //2 сотрудника ма1 $procurementEmp[] = new EmployeeGroup("Менеджер", 2, true, 20, 0, 500, 1); //босс ме2; $procurement->getAll($procurement, $procurementEmp); //получить все данные. $sales = new Departament("Продажи");// Создаём департамент Продажи. $salesEmp[] = new EmployeeGroup("Менеджер", 1, false, 20, 200, 500, 12); //12 сотрудников ме1 $salesEmp[] = new EmployeeGroup("Маркетолог", 1, false, 15, 150, 400, 6); //6 сотрудника ма1 $salesEmp[] = new EmployeeGroup("Аналитик", 1, false, 50, 5, 800, 3); //3 сотрудника ан1 $salesEmp[] = new EmployeeGroup("Аналитик", 2, false, 50, 5, 800, 2); //2 сотрудника ан2 $salesEmp[] = new EmployeeGroup("Маркетолог", 2, true, 15, 0, 400, 1); //босс ма2; $sales->getAll($sales, $salesEmp); //получить все данные. $advertising = new Departament("Реклама");// Создаём департамент Рекламы. $advertisingEmp[] = new EmployeeGroup("Маркетолог", 1, false, 15, 150, 400, 12); //12 сотрудника ма1 $advertisingEmp[] = new EmployeeGroup("Маркетолог", 2, false, 15, 150, 400, 10); //10 сотрудника ма2 $advertisingEmp[] = new EmployeeGroup("Менеджер", 1, false, 20, 200, 500, 8); //8 сотрудников ме1 $advertisingEmp[] = new EmployeeGroup("Инженер", 1, false, 5, 50, 200, 2); //2 ин1 $advertisingEmp[] = new EmployeeGroup("Маркетолог", 3, true, 15, 0, 400, 1); //босс ма3; $advertising->getAll($advertising, $advertisingEmp); //получить все данные. $logistics = new Departament("Логистика");// Создаём департамент Рекламы. $logisticsEmp[] = new EmployeeGroup("Менеджер", 1, false, 20, 200, 500, 13); //13 сотрудников ме1 $logisticsEmp[] = new EmployeeGroup("Менеджер", 2, false, 20, 200, 500, 5); //5 сотрудников ме2 $logisticsEmp[] = new EmployeeGroup("Инженер", 1, false, 5, 50, 200, 5); //5 ин1 $logisticsEmp[] = new EmployeeGroup("Менеджер", 1, false, 20, 200, 500, 1); //босс ме1 $logistics->getAll($logistics, $logisticsEmp); //получить все данные. ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Brc10
function name:  (null)
number of ops:  245
compiled vars:  !0 = $procurement, !1 = $procurementEmp, !2 = $sales, !3 = $salesEmp, !4 = $advertising, !5 = $advertisingEmp, !6 = $logistics, !7 = $logisticsEmp
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'header'
          1        SEND_VAL                                                     'Content-Type%3A+text%2Fplain%3B+charset%3Dutf-8'
          2        DO_ICALL                                                     
  116     3        NEW                                                  $9      'Departament'
          4        SEND_VAL_EX                                                  '%D0%97%D0%B0%D0%BA%D1%83%D0%BF%D0%BA%D0%B8'
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $9
  118     7        NEW                                                  $13     'EmployeeGroup'
          8        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
          9        SEND_VAL_EX                                                  1
         10        SEND_VAL_EX                                                  <false>
         11        SEND_VAL_EX                                                  20
         12        SEND_VAL_EX                                                  200
         13        SEND_VAL_EX                                                  500
         14        SEND_VAL_EX                                                  9
         15        DO_FCALL                                          0          
         16        ASSIGN_DIM                                                   !1
         17        OP_DATA                                                      $13
  119    18        NEW                                                  $16     'EmployeeGroup'
         19        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
         20        SEND_VAL_EX                                                  2
         21        SEND_VAL_EX                                                  <false>
         22        SEND_VAL_EX                                                  20
         23        SEND_VAL_EX                                                  200
         24        SEND_VAL_EX                                                  500
         25        SEND_VAL_EX                                                  3
         26        DO_FCALL                                          0          
         27        ASSIGN_DIM                                                   !1
         28        OP_DATA                                                      $16
  120    29        NEW                                                  $19     'EmployeeGroup'
         30        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
         31        SEND_VAL_EX                                                  3
         32        SEND_VAL_EX                                                  <false>
         33        SEND_VAL_EX                                                  20
         34        SEND_VAL_EX                                                  200
         35        SEND_VAL_EX                                                  500
         36        SEND_VAL_EX                                                  2
         37        DO_FCALL                                          0          
         38        ASSIGN_DIM                                                   !1
         39        OP_DATA                                                      $19
  121    40        NEW                                                  $22     'EmployeeGroup'
         41        SEND_VAL_EX                                                  '%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%82%D0%BE%D0%BB%D0%BE%D0%B3'
         42        SEND_VAL_EX                                                  1
         43        SEND_VAL_EX                                                  <false>
         44        SEND_VAL_EX                                                  15
         45        SEND_VAL_EX                                                  150
         46        SEND_VAL_EX                                                  400
         47        SEND_VAL_EX                                                  2
         48        DO_FCALL                                          0          
         49        ASSIGN_DIM                                                   !1
         50        OP_DATA                                                      $22
  122    51        NEW                                                  $25     'EmployeeGroup'
         52        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
         53        SEND_VAL_EX                                                  2
         54        SEND_VAL_EX                                                  <true>
         55        SEND_VAL_EX                                                  20
         56        SEND_VAL_EX                                                  0
         57        SEND_VAL_EX                                                  500
         58        SEND_VAL_EX                                                  1
         59        DO_FCALL                                          0          
         60        ASSIGN_DIM                                                   !1
         61        OP_DATA                                                      $25
  123    62        INIT_METHOD_CALL                                             !0, 'getAll'
         63        SEND_VAR_EX                                                  !0
         64        SEND_VAR_EX                                                  !1
         65        DO_FCALL                                          0          
  127    66        NEW                                                  $28     'Departament'
         67        SEND_VAL_EX                                                  '%D0%9F%D1%80%D0%BE%D0%B4%D0%B0%D0%B6%D0%B8'
         68        DO_FCALL                                          0          
         69        ASSIGN                                                       !2, $28
  128    70        NEW                                                  $32     'EmployeeGroup'
         71        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
         72        SEND_VAL_EX                                                  1
         73        SEND_VAL_EX                                                  <false>
         74        SEND_VAL_EX                                                  20
         75        SEND_VAL_EX                                                  200
         76        SEND_VAL_EX                                                  500
         77        SEND_VAL_EX                                                  12
         78        DO_FCALL                                          0          
         79        ASSIGN_DIM                                                   !3
         80        OP_DATA                                                      $32
  129    81        NEW                                                  $35     'EmployeeGroup'
         82        SEND_VAL_EX                                                  '%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%82%D0%BE%D0%BB%D0%BE%D0%B3'
         83        SEND_VAL_EX                                                  1
         84        SEND_VAL_EX                                                  <false>
         85        SEND_VAL_EX                                                  15
         86        SEND_VAL_EX                                                  150
         87        SEND_VAL_EX                                                  400
         88        SEND_VAL_EX                                                  6
         89        DO_FCALL                                          0          
         90        ASSIGN_DIM                                                   !3
         91        OP_DATA                                                      $35
  130    92        NEW                                                  $38     'EmployeeGroup'
         93        SEND_VAL_EX                                                  '%D0%90%D0%BD%D0%B0%D0%BB%D0%B8%D1%82%D0%B8%D0%BA'
         94        SEND_VAL_EX                                                  1
         95        SEND_VAL_EX                                                  <false>
         96        SEND_VAL_EX                                                  50
         97        SEND_VAL_EX                                                  5
         98        SEND_VAL_EX                                                  800
         99        SEND_VAL_EX                                                  3
        100        DO_FCALL                                          0          
        101        ASSIGN_DIM                                                   !3
        102        OP_DATA                                                      $38
  131   103        NEW                                                  $41     'EmployeeGroup'
        104        SEND_VAL_EX                                                  '%D0%90%D0%BD%D0%B0%D0%BB%D0%B8%D1%82%D0%B8%D0%BA'
        105        SEND_VAL_EX                                                  2
        106        SEND_VAL_EX                                                  <false>
        107        SEND_VAL_EX                                                  50
        108        SEND_VAL_EX                                                  5
        109        SEND_VAL_EX                                                  800
        110        SEND_VAL_EX                                                  2
        111        DO_FCALL                                          0          
        112        ASSIGN_DIM                                                   !3
        113        OP_DATA                                                      $41
  132   114        NEW                                                  $44     'EmployeeGroup'
        115        SEND_VAL_EX                                                  '%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%82%D0%BE%D0%BB%D0%BE%D0%B3'
        116        SEND_VAL_EX                                                  2
        117        SEND_VAL_EX                                                  <true>
        118        SEND_VAL_EX                                                  15
        119        SEND_VAL_EX                                                  0
        120        SEND_VAL_EX                                                  400
        121        SEND_VAL_EX                                                  1
        122        DO_FCALL                                          0          
        123        ASSIGN_DIM                                                   !3
        124        OP_DATA                                                      $44
  133   125        INIT_METHOD_CALL                                             !2, 'getAll'
        126        SEND_VAR_EX                                                  !2
        127        SEND_VAR_EX                                                  !3
        128        DO_FCALL                                          0          
  136   129        NEW                                                  $47     'Departament'
        130        SEND_VAL_EX                                                  '%D0%A0%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D0%B0'
        131        DO_FCALL                                          0          
        132        ASSIGN                                                       !4, $47
  137   133        NEW                                                  $51     'EmployeeGroup'
        134        SEND_VAL_EX                                                  '%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%82%D0%BE%D0%BB%D0%BE%D0%B3'
        135        SEND_VAL_EX                                                  1
        136        SEND_VAL_EX                                                  <false>
        137        SEND_VAL_EX                                                  15
        138        SEND_VAL_EX                                                  150
        139        SEND_VAL_EX                                                  400
        140        SEND_VAL_EX                                                  12
        141        DO_FCALL                                          0          
        142        ASSIGN_DIM                                                   !5
        143        OP_DATA                                                      $51
  138   144        NEW                                                  $54     'EmployeeGroup'
        145        SEND_VAL_EX                                                  '%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%82%D0%BE%D0%BB%D0%BE%D0%B3'
        146        SEND_VAL_EX                                                  2
        147        SEND_VAL_EX                                                  <false>
        148        SEND_VAL_EX                                                  15
        149        SEND_VAL_EX                                                  150
        150        SEND_VAL_EX                                                  400
        151        SEND_VAL_EX                                                  10
        152        DO_FCALL                                          0          
        153        ASSIGN_DIM                                                   !5
        154        OP_DATA                                                      $54
  139   155        NEW                                                  $57     'EmployeeGroup'
        156        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
        157        SEND_VAL_EX                                                  1
        158        SEND_VAL_EX                                                  <false>
        159        SEND_VAL_EX                                                  20
        160        SEND_VAL_EX                                                  200
        161        SEND_VAL_EX                                                  500
        162        SEND_VAL_EX                                                  8
        163        DO_FCALL                                          0          
        164        ASSIGN_DIM                                                   !5
        165        OP_DATA                                                      $57
  140   166        NEW                                                  $60     'EmployeeGroup'
        167        SEND_VAL_EX                                                  '%D0%98%D0%BD%D0%B6%D0%B5%D0%BD%D0%B5%D1%80'
        168        SEND_VAL_EX                                                  1
        169        SEND_VAL_EX                                                  <false>
        170        SEND_VAL_EX                                                  5
        171        SEND_VAL_EX                                                  50
        172        SEND_VAL_EX                                                  200
        173        SEND_VAL_EX                                                  2
        174        DO_FCALL                                          0          
        175        ASSIGN_DIM                                                   !5
        176        OP_DATA                                                      $60
  141   177        NEW                                                  $63     'EmployeeGroup'
        178        SEND_VAL_EX                                                  '%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%82%D0%BE%D0%BB%D0%BE%D0%B3'
        179        SEND_VAL_EX                                                  3
        180        SEND_VAL_EX                                                  <true>
        181        SEND_VAL_EX                                                  15
        182        SEND_VAL_EX                                                  0
        183        SEND_VAL_EX                                                  400
        184        SEND_VAL_EX                                                  1
        185        DO_FCALL                                          0          
        186        ASSIGN_DIM                                                   !5
        187        OP_DATA                                                      $63
  142   188        INIT_METHOD_CALL                                             !4, 'getAll'
        189        SEND_VAR_EX                                                  !4
        190        SEND_VAR_EX                                                  !5
        191        DO_FCALL                                          0          
  145   192        NEW                                                  $66     'Departament'
        193        SEND_VAL_EX                                                  '%D0%9B%D0%BE%D0%B3%D0%B8%D1%81%D1%82%D0%B8%D0%BA%D0%B0'
        194        DO_FCALL                                          0          
        195        ASSIGN                                                       !6, $66
  146   196        NEW                                                  $70     'EmployeeGroup'
        197        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
        198        SEND_VAL_EX                                                  1
        199        SEND_VAL_EX                                                  <false>
        200        SEND_VAL_EX                                                  20
        201        SEND_VAL_EX                                                  200
        202        SEND_VAL_EX                                                  500
        203        SEND_VAL_EX                                                  13
        204        DO_FCALL                                          0          
        205        ASSIGN_DIM                                                   !7
        206        OP_DATA                                                      $70
  147   207        NEW                                                  $73     'EmployeeGroup'
        208        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
        209        SEND_VAL_EX                                                  2
        210        SEND_VAL_EX                                                  <false>
        211        SEND_VAL_EX                                                  20
        212        SEND_VAL_EX                                                  200
        213        SEND_VAL_EX                                                  500
        214        SEND_VAL_EX                                                  5
        215        DO_FCALL                                          0          
        216        ASSIGN_DIM                                                   !7
        217        OP_DATA                                                      $73
  148   218        NEW                                                  $76     'EmployeeGroup'
        219        SEND_VAL_EX                                                  '%D0%98%D0%BD%D0%B6%D0%B5%D0%BD%D0%B5%D1%80'
        220        SEND_VAL_EX                                                  1
        221        SEND_VAL_EX                                                  <false>
        222        SEND_VAL_EX                                                  5
        223        SEND_VAL_EX                                                  50
        224        SEND_VAL_EX                                                  200
        225        SEND_VAL_EX                                                  5
        226        DO_FCALL                                          0          
        227        ASSIGN_DIM                                                   !7
        228        OP_DATA                                                      $76
  149   229        NEW                                                  $79     'EmployeeGroup'
        230        SEND_VAL_EX                                                  '%D0%9C%D0%B5%D0%BD%D0%B5%D0%B4%D0%B6%D0%B5%D1%80'
        231        SEND_VAL_EX                                                  1
        232        SEND_VAL_EX                                                  <false>
        233        SEND_VAL_EX                                                  20
        234        SEND_VAL_EX                                                  200
        235        SEND_VAL_EX                                                  500
        236        SEND_VAL_EX                                                  1
        237        DO_FCALL                                          0          
        238        ASSIGN_DIM                                                   !7
        239        OP_DATA                                                      $79
  150   240        INIT_METHOD_CALL                                             !6, 'getAll'
        241        SEND_VAR_EX                                                  !6
        242        SEND_VAR_EX                                                  !7
        243        DO_FCALL                                          0          
  152   244      > RETURN                                                       1

Class Departament:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Brc10
function name:  __construct
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
   10     1        ASSIGN_OBJ                                                   'name'
          2        OP_DATA                                                      !0
   11     3      > RETURN                                                       null

End of function __construct

Function countemployees:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/Brc10
function name:  countEmployees
number of ops:  13
compiled vars:  !0 = $employees, !1 = $countEmployees, !2 = $employee
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV                                                 !0      
   14     1        ASSIGN                                                       !1, 0
   15     2      > FE_RESET_R                                           $4      !0, ->7
          3    > > FE_FETCH_R                                                   $4, !2, ->7
   17     4    >   FETCH_OBJ_R                                          ~5      !2, 'quantity'
          5        ASSIGN_OP                                         1          !1, ~5
   15     6      > JMP                                                          ->3
          7    >   FE_FREE                                                      $4
   19     8        ROPE_INIT                                         3  ~8      '%D0%A7%D0%B8%D1%81%D0%BB%D0%BE+%D1%81%D0%BE%D1%82%D1%80%D1%83%D0%B4%D0%BD%D0%B8%D0%BA%D0%BE%D0%B2%3A+'
          9        ROPE_ADD                                          1  ~8      ~8, !1
         10        ROPE_END                                          2  ~7      ~8, '%0A%0A%0A'
         11        ECHO                                                         ~7
   20    12      > RETURN                                                       null

End of function countemployees

Function getsalaryallemployees:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/Brc10
function name:  getSalaryAllEmployees
number of ops:  20
compiled vars:  !0 = $employees, !1 = $totalSalary, !2 = $employee
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E >   RECV                                                 !0      
   23     1        ASSIGN                                                       !1, 0
   24     2      > FE_RESET_R                                           $4      !0, ->11
          3    > > FE_FETCH_R                                                   $4, !2, ->11
   26     4    >   INIT_METHOD_CALL                                             !2, 'getSalary'
          5        SEND_VAR_EX                                                  !2
          6        DO_FCALL                                          0  $5      
          7        FETCH_OBJ_R                                          ~6      !2, 'quantity'
          8        MUL                                                  ~7      $5, ~6
          9        ASSIGN_OP                                         1          !1, ~7
   24    10      > JMP                                                          ->3
         11    >   FE_FREE                                                      $4
   28    12        INIT_FCALL                                                   'round'
         13        SEND_VAR                                                     !1
         14        DO_ICALL                                             $9      
         15        CONCAT                                               ~10     '%D0%9E%D0%B1%D1%89%D0%B0%D1%8F+%D0%97%D0%B0%D1%80%D0%BF%D0%BB%D0%B0%D1%82%D0%B0+%D0%BF%D0%BE+%D1%8D%D1%82%D0%BE%D0%BC%D1%83+%D0%B4%D0%B5%D0%BF%D0%B0%D1%80%D1%82%D0%B0%D0%BC%D0%B5%D0%BD%D1%82%D1%83%3A', $9
         16        CONCAT                                               ~11     ~10, '%0A'
         17        ECHO                                                         ~11
   29    18      > RETURN                                                       !1
   30    19*     > RETURN                                                       null

End of function getsalaryallemployees

Function getcoffeall:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/Brc10
function name:  getCoffeAll
number of ops:  18
compiled vars:  !0 = $employees, !1 = $countCoffe, !2 = $employee
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   31     0  E >   RECV                                                 !0      
   33     1        ASSIGN                                                       !1, 0
   34     2      > FE_RESET_R                                           $4      !0, ->11
          3    > > FE_FETCH_R                                                   $4, !2, ->11
   36     4    >   INIT_METHOD_CALL                                             !2, 'getCoffe'
          5        SEND_VAR_EX                                                  !2
          6        DO_FCALL                                          0  $5      
          7        FETCH_OBJ_R                                          ~6      !2, 'quantity'
          8        MUL                                                  ~7      $5, ~6
          9        ASSIGN_OP                                         1          !1, ~7
   34    10      > JMP                                                          ->3
         11    >   FE_FREE                                                      $4
   38    12        ROPE_INIT                                         3  ~10     '%D0%9A%D0%BE%D0%BB-%D0%B2%D0%BE+%D0%B2%D1%8B%D0%BF%D0%B8%D1%82%D0%BE%D0%B3%D0%BE+%D0%BA%D0%BE%D1%84%D1%84%D0%B5+%3D+'
         13        ROPE_ADD                                          1  ~10     ~10, !1
         14        ROPE_END                                          2  ~9      ~10, '%0A'
         15        ECHO                                                         ~9
   39    16      > RETURN                                                       !1
   40    17*     > RETURN                                                       null

End of function getcoffeall

Function getpageall:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/Brc10
function name:  getPageAll
number of ops:  16
compiled vars:  !0 = $employees, !1 = $countPage, !2 = $employee
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   41     0  E >   RECV                                                 !0      
   43     1        ASSIGN                                                       !1, 0
   44     2      > FE_RESET_R                                           $4      !0, ->9
          3    > > FE_FETCH_R                                                   $4, !2, ->9
   46     4    >   FETCH_OBJ_R                                          ~5      !2, 'page'
          5        FETCH_OBJ_R                                          ~6      !2, 'quantity'
          6        MUL                                                  ~7      ~5, ~6
          7        ASSIGN_OP                                         1          !1, ~7
   44     8      > JMP                                                          ->3
          9    >   FE_FREE                                                      $4
   48    10        ROPE_INIT                                         3  ~10     '%D0%92%D1%81%D0%B5%D0%B3%D0%BE+%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86+%D1%8D%D1%82%D0%BE%D0%B3%D0%BE+%D0%B4%D0%B5%D0%BF%D0%B0%3A+'
         11        ROPE_ADD                                          1  ~10     ~10, !1
         12        ROPE_END                                          2  ~9      ~10, '%0A'
         13        ECHO                                                         ~9
   49    14      > RETURN                                                       !1
   50    15*     > RETURN                                                       null

End of function getpageall

Function 

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.66 ms | 2293 KiB | 15 Q