3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('Europe/Moscow'); $now = time(); foreach (['en_US', 'ja_JA', 'ru_RU'] as $locale) { printf("%s:\n", $locale); foreach ([IntlDateFormatter::MEDIUM, IntlDateFormatter::LONG] as $datetype) { $formatter = new IntlDateFormatter($locale, $datetype, IntlDateFormatter::NONE); printf("- %s\n", $formatter->format($now)); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 36
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 36
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 34
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 34
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 34
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/iJOT4
function name:  (null)
number of ops:  38
compiled vars:  !0 = $tz, !1 = $now, !2 = $locale, !3 = $datetype, !4 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $5      'DateTimeZone'
          1        SEND_VAL_EX                                              'Europe%2FMoscow'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $5
    4     4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !1, $8
    5     7      > FE_RESET_R                                       $10     <array>, ->36
          8    > > FE_FETCH_R                                               $10, !2, ->36
    6     9    >   INIT_FCALL                                               'printf'
         10        SEND_VAL                                                 '%25s%3A%0A'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    8    13        FETCH_CLASS_CONSTANT                             ~12     'IntlDateFormatter', 'MEDIUM'
         14        INIT_ARRAY                                       ~13     ~12
         15        FETCH_CLASS_CONSTANT                             ~14     'IntlDateFormatter', 'LONG'
         16        ADD_ARRAY_ELEMENT                                ~13     ~14
         17      > FE_RESET_R                                       $15     ~13, ->34
         18    > > FE_FETCH_R                                               $15, !3, ->34
    9    19    >   NEW                                              $16     'IntlDateFormatter'
         20        SEND_VAR_EX                                              !2
         21        SEND_VAR_EX                                              !3
         22        FETCH_CLASS_CONSTANT                             ~17     'IntlDateFormatter', 'NONE'
         23        SEND_VAL_EX                                              ~17
         24        DO_FCALL                                      0          
         25        ASSIGN                                                   !4, $16
   10    26        INIT_FCALL                                               'printf'
         27        SEND_VAL                                                 '-+%25s%0A'
         28        INIT_METHOD_CALL                                         !4, 'format'
         29        SEND_VAR_EX                                              !1
         30        DO_FCALL                                      0  $20     
         31        SEND_VAR                                                 $20
         32        DO_ICALL                                                 
    8    33      > JMP                                                      ->18
         34    >   FE_FREE                                                  $15
    5    35      > JMP                                                      ->8
         36    >   FE_FREE                                                  $10
   12    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.55 ms | 1405 KiB | 17 Q