3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name =2; //dane wejciowe function localizedMonthName($month, $locale = "pl_PL.utf8"){ setlocale(LC_TIME,$locale); $time = mktime(0,0,0,$month); $monthName = strftime("%B",$time); setlocale(LC_TIME, ""); return $monthName; } echo localizedMonthName($name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rIeGY
function name:  (null)
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
   12     1        INIT_FCALL                                               'localizedmonthname'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function localizedmonthname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rIeGY
function name:  localizedMonthName
number of ops:  24
compiled vars:  !0 = $month, !1 = $locale, !2 = $time, !3 = $monthName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'pl_PL.utf8'
    5     2        INIT_FCALL                                               'setlocale'
          3        SEND_VAL                                                 2
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'mktime'
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 0
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !2, $5
    7    13        INIT_FCALL                                               'strftime'
         14        SEND_VAL                                                 '%25B'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $7      
         17        ASSIGN                                                   !3, $7
    8    18        INIT_FCALL                                               'setlocale'
         19        SEND_VAL                                                 2
         20        SEND_VAL                                                 ''
         21        DO_ICALL                                                 
    9    22      > RETURN                                                   !3
   11    23*     > RETURN                                                   null

End of function localizedmonthname

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.13 ms | 1399 KiB | 20 Q