3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['en_US', 'ru_RU', 'es_ES', 'fa_IR'] as $locale) { $pattern = <<<CONFIG '%s' => [ 'medium_no_year-short' => "%s", // %s 'long_no_year-short' => "%s", // %s ], CONFIG; $mediumF = new IntlDateFormatter($locale, IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT); $longF = new IntlDateFormatter($locale, IntlDateFormatter::LONG, IntlDateFormatter::SHORT); printf( $pattern, $locale, $mediumF->getPattern(), $mediumF->format(1455111783), $longF->getPattern(), $longF->format(1455111783) ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 38
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 38
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
filename:       /in/QQjmW
function name:  (null)
number of ops:  40
compiled vars:  !0 = $locale, !1 = $pattern, !2 = $mediumF, !3 = $longF
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $4      <array>, ->38
          1    > > FE_FETCH_R                                               $4, !0, ->38
    4     2    >   ASSIGN                                                   !1, '++++++++%27%25s%27+%3D%3E+%5B%0A++++++++++++%27medium_no_year-short%27+%3D%3E+%22%25s%22%2C+%2F%2F+%25s%0A++++++++++++%27long_no_year-short%27+%3D%3E+%22%25s%22%2C+%2F%2F+%25s%0A++++++++%5D%2C%0A'
   12     3        NEW                                              $6      'IntlDateFormatter'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CLASS_CONSTANT                             ~7      'IntlDateFormatter', 'MEDIUM'
          6        SEND_VAL_EX                                              ~7
          7        FETCH_CLASS_CONSTANT                             ~8      'IntlDateFormatter', 'SHORT'
          8        SEND_VAL_EX                                              ~8
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $6
   13    11        NEW                                              $11     'IntlDateFormatter'
         12        SEND_VAR_EX                                              !0
         13        FETCH_CLASS_CONSTANT                             ~12     'IntlDateFormatter', 'LONG'
         14        SEND_VAL_EX                                              ~12
         15        FETCH_CLASS_CONSTANT                             ~13     'IntlDateFormatter', 'SHORT'
         16        SEND_VAL_EX                                              ~13
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !3, $11
   15    19        INIT_FCALL                                               'printf'
   16    20        SEND_VAR                                                 !1
   17    21        SEND_VAR                                                 !0
   18    22        INIT_METHOD_CALL                                         !2, 'getPattern'
         23        DO_FCALL                                      0  $16     
         24        SEND_VAR                                                 $16
   19    25        INIT_METHOD_CALL                                         !2, 'format'
         26        SEND_VAL_EX                                              1455111783
         27        DO_FCALL                                      0  $17     
         28        SEND_VAR                                                 $17
   20    29        INIT_METHOD_CALL                                         !3, 'getPattern'
         30        DO_FCALL                                      0  $18     
         31        SEND_VAR                                                 $18
   21    32        INIT_METHOD_CALL                                         !3, 'format'
         33        SEND_VAL_EX                                              1455111783
         34        DO_FCALL                                      0  $19     
         35        SEND_VAR                                                 $19
         36        DO_ICALL                                                 
    3    37      > JMP                                                      ->1
         38    >   FE_FREE                                                  $4
   23    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.59 ms | 1400 KiB | 15 Q