3v4l.org

run code in 300+ PHP versions simultaneously
<?php \Locale::setDefault('nb-no'); $fmt = new IntlDateFormatter(null, IntlDateFormatter::MEDIUM, IntlDateFormatter::MEDIUM, "Europe/Vienna"); echo "First Formatted output is ".$fmt->format(0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jUD8K
function name:  (null)
number of ops:  18
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        SEND_VAL_EX                                              null
    5     5        FETCH_CLASS_CONSTANT                             ~3      'IntlDateFormatter', 'MEDIUM'
          6        SEND_VAL_EX                                              ~3
          7        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'MEDIUM'
          8        SEND_VAL_EX                                              ~4
    6     9        SEND_VAL_EX                                              'Europe%2FVienna'
         10        DO_FCALL                                      0          
    4    11        ASSIGN                                                   !0, $2
    7    12        INIT_METHOD_CALL                                         !0, 'format'
         13        SEND_VAL_EX                                              0
         14        DO_FCALL                                      0  $7      
         15        CONCAT                                           ~8      'First+Formatted+output+is+', $7
         16        ECHO                                                     ~8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.28 ms | 1384 KiB | 13 Q