3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'us'; var_dump(($fmt = new IntlDateFormatter($locale, IntlDateFormatter::FULL, IntlDateFormatter::NONE))->format(time())); $locale = 'fi'; var_dump(($fmt = new IntlDateFormatter($locale, IntlDateFormatter::FULL, IntlDateFormatter::NONE))->format(time())); $locale = 'da'; var_dump(($fmt = new IntlDateFormatter($locale, IntlDateFormatter::FULL, IntlDateFormatter::NONE))->format(time())); $locale = 'nb'; var_dump(($fmt = new IntlDateFormatter($locale, IntlDateFormatter::FULL, IntlDateFormatter::NONE))->format(time()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/918e6
function name:  (null)
number of ops:  69
compiled vars:  !0 = $locale, !1 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'us'
    5     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $3      'IntlDateFormatter'
          3        SEND_VAR_EX                                              !0
          4        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'FULL'
          5        SEND_VAL_EX                                              ~4
          6        FETCH_CLASS_CONSTANT                             ~5      'IntlDateFormatter', 'NONE'
          7        SEND_VAL_EX                                              ~5
          8        DO_FCALL                                      0          
          9        ASSIGN                                           ~7      !1, $3
         10        INIT_METHOD_CALL                                         ~7, 'format'
         11        INIT_FCALL                                               'time'
         12        DO_ICALL                                         $8      
         13        SEND_VAR_NO_REF_EX                                       $8
         14        DO_FCALL                                      0  $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
    7    17        ASSIGN                                                   !0, 'fi'
    9    18        INIT_FCALL                                               'var_dump'
         19        NEW                                              $12     'IntlDateFormatter'
         20        SEND_VAR_EX                                              !0
         21        FETCH_CLASS_CONSTANT                             ~13     'IntlDateFormatter', 'FULL'
         22        SEND_VAL_EX                                              ~13
         23        FETCH_CLASS_CONSTANT                             ~14     'IntlDateFormatter', 'NONE'
         24        SEND_VAL_EX                                              ~14
         25        DO_FCALL                                      0          
         26        ASSIGN                                           ~16     !1, $12
         27        INIT_METHOD_CALL                                         ~16, 'format'
         28        INIT_FCALL                                               'time'
         29        DO_ICALL                                         $17     
         30        SEND_VAR_NO_REF_EX                                       $17
         31        DO_FCALL                                      0  $18     
         32        SEND_VAR                                                 $18
         33        DO_ICALL                                                 
   11    34        ASSIGN                                                   !0, 'da'
   13    35        INIT_FCALL                                               'var_dump'
         36        NEW                                              $21     'IntlDateFormatter'
         37        SEND_VAR_EX                                              !0
         38        FETCH_CLASS_CONSTANT                             ~22     'IntlDateFormatter', 'FULL'
         39        SEND_VAL_EX                                              ~22
         40        FETCH_CLASS_CONSTANT                             ~23     'IntlDateFormatter', 'NONE'
         41        SEND_VAL_EX                                              ~23
         42        DO_FCALL                                      0          
         43        ASSIGN                                           ~25     !1, $21
         44        INIT_METHOD_CALL                                         ~25, 'format'
         45        INIT_FCALL                                               'time'
         46        DO_ICALL                                         $26     
         47        SEND_VAR_NO_REF_EX                                       $26
         48        DO_FCALL                                      0  $27     
         49        SEND_VAR                                                 $27
         50        DO_ICALL                                                 
   15    51        ASSIGN                                                   !0, 'nb'
   17    52        INIT_FCALL                                               'var_dump'
         53        NEW                                              $30     'IntlDateFormatter'
         54        SEND_VAR_EX                                              !0
         55        FETCH_CLASS_CONSTANT                             ~31     'IntlDateFormatter', 'FULL'
         56        SEND_VAL_EX                                              ~31
         57        FETCH_CLASS_CONSTANT                             ~32     'IntlDateFormatter', 'NONE'
         58        SEND_VAL_EX                                              ~32
         59        DO_FCALL                                      0          
         60        ASSIGN                                           ~34     !1, $30
         61        INIT_METHOD_CALL                                         ~34, 'format'
         62        INIT_FCALL                                               'time'
         63        DO_ICALL                                         $35     
         64        SEND_VAR_NO_REF_EX                                       $35
         65        DO_FCALL                                      0  $36     
         66        SEND_VAR                                                 $36
         67        DO_ICALL                                                 
         68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.08 ms | 1087 KiB | 15 Q