3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Siodemka { private $paczki = [1,2,3]; public function dodajPaczke(Paczka $paczka): Kurier { // } public function kosztDostawy(): float { $oplata = $this->oplataPodstawowa() + $this->oplataPaliwowa(); return $this->ilePaczek() * $this->dodajPodatek($oplata); } private function oplataPodstawowa(): float { return 12.34; } private function oplataPaliwowa(): float { return rand(100,999) / 100; } protected function dodajPodatek(float $wartosc): float { return $wartosc * 1.23; } protected function ilePaczek(): int { return count($this->paczki); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fl1vv
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E > > RETURN                                                   1

Class Siodemka:
Function dodajpaczke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fl1vv
function name:  dodajPaczke
number of ops:  3
compiled vars:  !0 = $paczka
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        VERIFY_RETURN_TYPE                                       
          2      > RETURN                                                   null

End of function dodajpaczke

Function kosztdostawy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fl1vv
function name:  kosztDostawy
number of ops:  16
compiled vars:  !0 = $oplata
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         'oplataPodstawowa'
          1        DO_FCALL                                      0  $1      
   12     2        INIT_METHOD_CALL                                         'oplataPaliwowa'
          3        DO_FCALL                                      0  $2      
          4        ADD                                              ~3      $1, $2
   11     5        ASSIGN                                                   !0, ~3
   13     6        INIT_METHOD_CALL                                         'ilePaczek'
          7        DO_FCALL                                      0  $5      
   14     8        INIT_METHOD_CALL                                         'dodajPodatek'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $6      
         11        MUL                                              ~7      $5, $6
         12        VERIFY_RETURN_TYPE                                       ~7
         13      > RETURN                                                   ~7
   15    14*       VERIFY_RETURN_TYPE                                       
         15*     > RETURN                                                   null

End of function kosztdostawy

Function oplatapodstawowa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fl1vv
function name:  oplataPodstawowa
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   12.34
   19     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function oplatapodstawowa

Function oplatapaliwowa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fl1vv
function name:  oplataPaliwowa
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 100
          2        SEND_VAL                                                 999
          3        DO_ICALL                                         $0      
          4        DIV                                              ~1      $0, 100
          5        VERIFY_RETURN_TYPE                                       ~1
          6      > RETURN                                                   ~1
   23     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function oplatapaliwowa

Function dodajpodatek:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fl1vv
function name:  dodajPodatek
number of ops:  6
compiled vars:  !0 = $wartosc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   26     1        MUL                                              ~1      !0, 1.23
          2        VERIFY_RETURN_TYPE                                       ~1
          3      > RETURN                                                   ~1
   27     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function dodajpodatek

Function ilepaczek:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fl1vv
function name:  ilePaczek
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   FETCH_OBJ_R                                      ~0      'paczki'
          1        COUNT                                            ~1      ~0
          2        VERIFY_RETURN_TYPE                                       ~1
          3      > RETURN                                                   ~1
   31     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function ilepaczek

End of class Siodemka.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.1 ms | 1400 KiB | 15 Q