3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array('en_US', 'fr_FR') as $locale) { $formatter = new IntlDateFormatter($locale, IntlDateFormatter::NONE, IntlDateFormatter::NONE, null, null, 'e'); foreach (array(1, 7) as $dow) { echo "${locale}(${dow}): " . date('l', $formatter->parse($dow)) . "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 32
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 32
Branch analysis from position: 2
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 30
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 30
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 30
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/bO80c
function name:  (null)
number of ops:  34
compiled vars:  !0 = $locale, !1 = $formatter, !2 = $dow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $3      <array>, ->32
          1    > > FE_FETCH_R                                               $3, !0, ->32
    4     2    >   NEW                                              $4      'IntlDateFormatter'
          3        SEND_VAR_EX                                              !0
          4        FETCH_CLASS_CONSTANT                             ~5      'IntlDateFormatter', 'NONE'
          5        SEND_VAL_EX                                              ~5
          6        FETCH_CLASS_CONSTANT                             ~6      'IntlDateFormatter', 'NONE'
          7        SEND_VAL_EX                                              ~6
          8        SEND_VAL_EX                                              null
          9        SEND_VAL_EX                                              null
         10        SEND_VAL_EX                                              'e'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $4
    6    13      > FE_RESET_R                                       $9      <array>, ->30
         14    > > FE_FETCH_R                                               $9, !2, ->30
    7    15    >   ROPE_INIT                                     4  ~11     !0
         16        ROPE_ADD                                      1  ~11     ~11, '%28'
         17        ROPE_ADD                                      2  ~11     ~11, !2
         18        ROPE_END                                      3  ~10     ~11, '%29%3A+'
         19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'l'
         21        INIT_METHOD_CALL                                         !1, 'parse'
         22        SEND_VAR_EX                                              !2
         23        DO_FCALL                                      0  $13     
         24        SEND_VAR                                                 $13
         25        DO_ICALL                                         $14     
         26        CONCAT                                           ~15     ~10, $14
         27        CONCAT                                           ~16     ~15, '%0A'
         28        ECHO                                                     ~16
    6    29      > JMP                                                      ->14
         30    >   FE_FREE                                                  $9
    3    31      > JMP                                                      ->1
         32    >   FE_FREE                                                  $3
    9    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.21 ms | 1396 KiB | 15 Q