3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n"; Locale::setDefault('en_GB'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n"; Locale::setDefault('no_NO'); $formatter = new IntlDateFormatter(Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo $formatter->format($time)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s0ih1
function name:  (null)
number of ops:  52
compiled vars:  !0 = $formatter, !1 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'IntlDateFormatter'
          1        INIT_STATIC_METHOD_CALL                                  'Locale', 'getDefault'
          2        DO_FCALL                                      0  $3      
          3        SEND_VAR_NO_REF_EX                                       $3
          4        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'MEDIUM'
          5        SEND_VAL_EX                                              ~4
          6        FETCH_CLASS_CONSTANT                             ~5      'IntlDateFormatter', 'NONE'
          7        SEND_VAL_EX                                              ~5
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $2
    4    10        INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $8      
         13        CONCAT                                           ~9      $8, '%0A'
         14        ECHO                                                     ~9
    6    15        INIT_STATIC_METHOD_CALL                                  'Locale', 'setDefault'
         16        SEND_VAL_EX                                              'en_GB'
         17        DO_FCALL                                      0          
    7    18        NEW                                              $11     'IntlDateFormatter'
         19        INIT_STATIC_METHOD_CALL                                  'Locale', 'getDefault'
         20        DO_FCALL                                      0  $12     
         21        SEND_VAR_NO_REF_EX                                       $12
         22        FETCH_CLASS_CONSTANT                             ~13     'IntlDateFormatter', 'MEDIUM'
         23        SEND_VAL_EX                                              ~13
         24        FETCH_CLASS_CONSTANT                             ~14     'IntlDateFormatter', 'NONE'
         25        SEND_VAL_EX                                              ~14
         26        DO_FCALL                                      0          
         27        ASSIGN                                                   !0, $11
    8    28        INIT_METHOD_CALL                                         !0, 'format'
         29        SEND_VAR_EX                                              !1
         30        DO_FCALL                                      0  $17     
         31        CONCAT                                           ~18     $17, '%0A'
         32        ECHO                                                     ~18
   10    33        INIT_STATIC_METHOD_CALL                                  'Locale', 'setDefault'
         34        SEND_VAL_EX                                              'no_NO'
         35        DO_FCALL                                      0          
   11    36        NEW                                              $20     'IntlDateFormatter'
         37        INIT_STATIC_METHOD_CALL                                  'Locale', 'getDefault'
         38        DO_FCALL                                      0  $21     
         39        SEND_VAR_NO_REF_EX                                       $21
         40        FETCH_CLASS_CONSTANT                             ~22     'IntlDateFormatter', 'MEDIUM'
         41        SEND_VAL_EX                                              ~22
         42        FETCH_CLASS_CONSTANT                             ~23     'IntlDateFormatter', 'NONE'
         43        SEND_VAL_EX                                              ~23
         44        DO_FCALL                                      0          
         45        ASSIGN                                                   !0, $20
   12    46        INIT_METHOD_CALL                                         !0, 'format'
         47        SEND_VAR_EX                                              !1
         48        DO_FCALL                                      0  $26     
         49        CONCAT                                           ~27     $26, '%0A'
         50        ECHO                                                     ~27
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.92 ms | 1399 KiB | 13 Q