3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1396 KiB | 19 Q