3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(setlocale(LC_TIME, 'hungarian', 'hu_HU', 'hu_HU.ISO8859-2', 'hu_HU.UTF-8')); echo $formatedDate = strftime('%G. %B %e.', time()); function list_system_locales(){ ob_start(); system('locale -a'); $str = ob_get_contents(); ob_end_clean(); return split("\\n", trim($str)); } echo list_system_locales();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CvQ87
function name:  (null)
number of ops:  22
compiled vars:  !0 = $formatedDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'setlocale'
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 'hungarian'
          4        SEND_VAL                                                 'hu_HU'
          5        SEND_VAL                                                 'hu_HU.ISO8859-2'
          6        SEND_VAL                                                 'hu_HU.UTF-8'
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'strftime'
         11        SEND_VAL                                                 '%25G.+%25B+%25e.'
         12        INIT_FCALL                                               'time'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        ASSIGN                                           ~5      !0, $4
         17        ECHO                                                     ~5
   13    18        INIT_FCALL                                               'list_system_locales'
         19        DO_FCALL                                      0  $6      
         20        ECHO                                                     $6
         21      > RETURN                                                   1

Function list_system_locales:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CvQ87
function name:  list_system_locales
number of ops:  19
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
    8     2        INIT_FCALL                                               'system'
          3        SEND_VAL                                                 'locale+-a'
          4        DO_ICALL                                                 
    9     5        INIT_FCALL                                               'ob_get_contents'
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
   10     8        INIT_FCALL                                               'ob_end_clean'
          9        DO_ICALL                                                 
   11    10        INIT_FCALL_BY_NAME                                       'split'
         11        SEND_VAL_EX                                              '%5Cn'
         12        INIT_FCALL                                               'trim'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR_NO_REF_EX                                       $6
         16        DO_FCALL                                      0  $7      
         17      > RETURN                                                   $7
   12    18*     > RETURN                                                   null

End of function list_system_locales

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.44 ms | 1403 KiB | 32 Q