3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_TIME, 'fr_FR'); date_default_timezone_set('Europe/Paris'); $currentMonth = 4; for ($x = $currentMonth; $x < $currentMonth + 12; $x++) { $months[] = date('Y-F-m', mktime(0, 0, 0, $x, 1)); } $FrenchMonth = array('Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'); $EnglishMonth = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); for ( $i=0; $i<12; $i++ ) { $twelvemonthsdata = explode('-',$months[$i]); $twelvemonthsM = $twelvemonthsdata[1]; $twelveFormatMonth = 'F'; $twelvemonthinfrench = str_replace( $EnglishMonth,$FrenchMonth, date($twelveFormatMonth, strtotime($twelvemonthsM))); var_dump($twelvemonthinfrench); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 31
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 59, Position 2 = 31
Branch analysis from position: 59
Branch analysis from position: 31
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 10
Branch analysis from position: 27
Branch analysis from position: 10
filename:       /in/VnDql
function name:  (null)
number of ops:  60
compiled vars:  !0 = $currentMonth, !1 = $x, !2 = $months, !3 = $FrenchMonth, !4 = $EnglishMonth, !5 = $i, !6 = $twelvemonthsdata, !7 = $twelvemonthsM, !8 = $twelveFormatMonth, !9 = $twelvemonthinfrench
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 'fr_FR'
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'date_default_timezone_set'
          5        SEND_VAL                                                 'Europe%2FParis'
          6        DO_ICALL                                                 
    7     7        ASSIGN                                                   !0, 4
    9     8        ASSIGN                                                   !1, !0
          9      > JMP                                                      ->24
   10    10    >   INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-F-m'
         12        INIT_FCALL                                               'mktime'
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 0
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $15     
         19        SEND_VAR                                                 $15
         20        DO_ICALL                                         $16     
         21        ASSIGN_DIM                                               !2
         22        OP_DATA                                                  $16
    9    23        PRE_INC                                                  !1
         24    >   ADD                                              ~18     !0, 12
         25        IS_SMALLER                                               !1, ~18
         26      > JMPNZ                                                    ~19, ->10
   12    27    >   ASSIGN                                                   !3, <array>
   13    28        ASSIGN                                                   !4, <array>
   15    29        ASSIGN                                                   !5, 0
         30      > JMP                                                      ->57
   16    31    >   INIT_FCALL                                               'explode'
         32        SEND_VAL                                                 '-'
         33        FETCH_DIM_R                                      ~23     !2, !5
         34        SEND_VAL                                                 ~23
         35        DO_ICALL                                         $24     
         36        ASSIGN                                                   !6, $24
   17    37        FETCH_DIM_R                                      ~26     !6, 1
         38        ASSIGN                                                   !7, ~26
   18    39        ASSIGN                                                   !8, 'F'
   19    40        INIT_FCALL                                               'str_replace'
         41        SEND_VAR                                                 !4
         42        SEND_VAR                                                 !3
         43        INIT_FCALL                                               'date'
         44        SEND_VAR                                                 !8
         45        INIT_FCALL                                               'strtotime'
         46        SEND_VAR                                                 !7
         47        DO_ICALL                                         $29     
         48        SEND_VAR                                                 $29
         49        DO_ICALL                                         $30     
         50        SEND_VAR                                                 $30
         51        DO_ICALL                                         $31     
         52        ASSIGN                                                   !9, $31
   21    53        INIT_FCALL                                               'var_dump'
         54        SEND_VAR                                                 !9
         55        DO_ICALL                                                 
   15    56        PRE_INC                                                  !5
         57    >   IS_SMALLER                                               !5, 12
         58      > JMPNZ                                                    ~35, ->31
   22    59    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.81 ms | 1023 KiB | 21 Q