3v4l.org

run code in 300+ PHP versions simultaneously
<?php Locale::setDefault('nb-no'); $fmt = new IntlDateFormatter(\Locale::getDefault(), IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE); echo "First Formatted output is ".$fmt->format(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XHukt
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'Locale', 'setDefault'
          1        SEND_VAL_EX                                              'nb-no'
          2        DO_FCALL                                      0          
    4     3        NEW                                              $2      'IntlDateFormatter'
          4        INIT_STATIC_METHOD_CALL                                  'Locale', 'getDefault'
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR_NO_REF_EX                                       $3
    5     7        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'MEDIUM'
          8        SEND_VAL_EX                                              ~4
          9        FETCH_CLASS_CONSTANT                             ~5      'IntlDateFormatter', 'NONE'
         10        SEND_VAL_EX                                              ~5
         11        DO_FCALL                                      0          
    4    12        ASSIGN                                                   !0, $2
    6    13        INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAL_EX                                              1
         15        DO_FCALL                                      0  $8      
         16        CONCAT                                           ~9      'First+Formatted+output+is+', $8
         17        ECHO                                                     ~9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.75 ms | 1393 KiB | 13 Q