3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.31 ms | 1399 KiB | 13 Q