3v4l.org

run code in 500+ PHP versions simultaneously
<?php \Locale::setDefault('nl-NL'); var_dump(\Locale::getDisplayName('nl-NL', null)); var_dump(\Locale::getDisplayName('nl-NL', \Locale::getDefault())); var_dump(\Locale::getDisplayRegion('-NL', null)); var_dump(\Locale::getDisplayRegion('-NL', \Locale::getDefault()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIf1N
function name:  (null)
number of ops:  36
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                      'Locale', 'setDefault'
          1        SEND_VAL_EX                                                  'nl-NL'
          2        DO_FCALL                                          0          
    4     3        INIT_FCALL                                                   'var_dump'
          4        INIT_STATIC_METHOD_CALL                                      'Locale', 'getDisplayName'
          5        SEND_VAL_EX                                                  'nl-NL'
          6        SEND_VAL_EX                                                  null
          7        DO_FCALL                                          0  $1      
          8        SEND_VAR                                                     $1
          9        DO_ICALL                                                     
    5    10        INIT_FCALL                                                   'var_dump'
         11        INIT_STATIC_METHOD_CALL                                      'Locale', 'getDisplayName'
         12        SEND_VAL_EX                                                  'nl-NL'
         13        INIT_STATIC_METHOD_CALL                                      'Locale', 'getDefault'
         14        DO_FCALL                                          0  $3      
         15        SEND_VAR_NO_REF_EX                                           $3
         16        DO_FCALL                                          0  $4      
         17        SEND_VAR                                                     $4
         18        DO_ICALL                                                     
    7    19        INIT_FCALL                                                   'var_dump'
         20        INIT_STATIC_METHOD_CALL                                      'Locale', 'getDisplayRegion'
         21        SEND_VAL_EX                                                  '-NL'
         22        SEND_VAL_EX                                                  null
         23        DO_FCALL                                          0  $6      
         24        SEND_VAR                                                     $6
         25        DO_ICALL                                                     
    8    26        INIT_FCALL                                                   'var_dump'
         27        INIT_STATIC_METHOD_CALL                                      'Locale', 'getDisplayRegion'
         28        SEND_VAL_EX                                                  '-NL'
         29        INIT_STATIC_METHOD_CALL                                      'Locale', 'getDefault'
         30        DO_FCALL                                          0  $8      
         31        SEND_VAR_NO_REF_EX                                           $8
         32        DO_FCALL                                          0  $9      
         33        SEND_VAR                                                     $9
         34        DO_ICALL                                                     
         35      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
141.16 ms | 478 KiB | 8 Q