3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** Vrácení českého názvu měsíce * @param int 1-12 * @return string * @copyright Jakub Vrána, http://php.vrana.cz/ */ function cesky_mesic($mesic) { static $nazvy = array(1 => 'leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec'); return $nazvy[$mesic]; } echo cesky_mesic(date("n")) . "\n"; /** Vrácení českého názvu dne v týdnu * @param int 0-6, 0 neděle * @return string * @copyright Jakub Vrána, http://php.vrana.cz/ */ function cesky_den($den) { static $nazvy = array('neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'); return $nazvy[$den]; } echo cesky_den(date("w")) . "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/890rg
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'cesky_mesic'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'n'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_FCALL                                      0  $1      
          6        CONCAT                                           ~2      $1, '%0A'
          7        ECHO                                                     ~2
   22     8        INIT_FCALL                                               'cesky_den'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'w'
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_FCALL                                      0  $4      
         14        CONCAT                                           ~5      $4, '%0A'
         15        ECHO                                                     ~5
   23    16      > RETURN                                                   1

Function cesky_mesic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/890rg
function name:  cesky_mesic
number of ops:  5
compiled vars:  !0 = $mesic, !1 = $nazvy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        BIND_STATIC                                              !1
    9     2        FETCH_DIM_R                                      ~2      !1, !0
          3      > RETURN                                                   ~2
   10     4*     > RETURN                                                   null

End of function cesky_mesic

Function cesky_den:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/890rg
function name:  cesky_den
number of ops:  5
compiled vars:  !0 = $den, !1 = $nazvy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   19     1        BIND_STATIC                                              !1
   20     2        FETCH_DIM_R                                      ~2      !1, !0
          3      > RETURN                                                   ~2
   21     4*     > RETURN                                                   null

End of function cesky_den

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.81 ms | 1399 KiB | 17 Q