3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Soubor musí být uložen v UTF-8 // Collator $collator = new Collator('cs_CZ'); $arr = array('Novák', 'Novakov', 'Žilina', 'Ábel', 'Atakdále'); $collator->sort($arr); var_dump($arr); echo "\n"; // IntlDateFormatter $formatter = new IntlDateFormatter( 'cs_CZ', IntlDateFormatter::FULL, IntlDateFormatter::MEDIUM ); echo 'Teď je ' . $formatter->format(time()) . "\n"; echo "\n"; $formatter = new IntlDateFormatter( 'cs_CZ', IntlDateFormatter::FULL, IntlDateFormatter::MEDIUM ); echo 'Za měsíc a týden bude ' . $formatter->format(strtotime('+1 month +1 week')) . "\n"; echo "\n"; // NumberFormatter $formatter = new NumberFormatter('cs_CZ', NumberFormatter::CURRENCY); echo 'Mám ' . $formatter->format(1234567.89123) . "\n"; echo "\n"; $formatter = new NumberFormatter('tn_TN', NumberFormatter::CURRENCY); echo 'Mám ' . $formatter->format(1234567.89123) . "\n"; echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MIK91
function name:  (null)
number of ops:  74
compiled vars:  !0 = $collator, !1 = $arr, !2 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $3      'Collator'
          1        SEND_VAL_EX                                              'cs_CZ'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    6     4        ASSIGN                                                   !1, <array>
    7     5        INIT_METHOD_CALL                                         !0, 'sort'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
    8     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    9    11        ECHO                                                     '%0A'
   12    12        NEW                                              $9      'IntlDateFormatter'
   13    13        SEND_VAL_EX                                              'cs_CZ'
   14    14        FETCH_CLASS_CONSTANT                             ~10     'IntlDateFormatter', 'FULL'
         15        SEND_VAL_EX                                              ~10
   15    16        FETCH_CLASS_CONSTANT                             ~11     'IntlDateFormatter', 'MEDIUM'
         17        SEND_VAL_EX                                              ~11
         18        DO_FCALL                                      0          
   12    19        ASSIGN                                                   !2, $9
   17    20        INIT_METHOD_CALL                                         !2, 'format'
         21        INIT_FCALL                                               'time'
         22        DO_ICALL                                         $14     
         23        SEND_VAR_NO_REF_EX                                       $14
         24        DO_FCALL                                      0  $15     
         25        CONCAT                                           ~16     'Te%C4%8F+je+', $15
         26        CONCAT                                           ~17     ~16, '%0A'
         27        ECHO                                                     ~17
   18    28        ECHO                                                     '%0A'
   20    29        NEW                                              $18     'IntlDateFormatter'
   21    30        SEND_VAL_EX                                              'cs_CZ'
   22    31        FETCH_CLASS_CONSTANT                             ~19     'IntlDateFormatter', 'FULL'
         32        SEND_VAL_EX                                              ~19
   23    33        FETCH_CLASS_CONSTANT                             ~20     'IntlDateFormatter', 'MEDIUM'
         34        SEND_VAL_EX                                              ~20
         35        DO_FCALL                                      0          
   20    36        ASSIGN                                                   !2, $18
   25    37        INIT_METHOD_CALL                                         !2, 'format'
         38        INIT_FCALL                                               'strtotime'
         39        SEND_VAL                                                 '%2B1+month+%2B1+week'
         40        DO_ICALL                                         $23     
         41        SEND_VAR_NO_REF_EX                                       $23
         42        DO_FCALL                                      0  $24     
         43        CONCAT                                           ~25     'Za+m%C4%9Bs%C3%ADc+a+t%C3%BDden+bude+', $24
         44        CONCAT                                           ~26     ~25, '%0A'
         45        ECHO                                                     ~26
   26    46        ECHO                                                     '%0A'
   29    47        NEW                                              $27     'NumberFormatter'
         48        SEND_VAL_EX                                              'cs_CZ'
         49        FETCH_CLASS_CONSTANT                             ~28     'NumberFormatter', 'CURRENCY'
         50        SEND_VAL_EX                                              ~28
         51        DO_FCALL                                      0          
         52        ASSIGN                                                   !2, $27
   30    53        INIT_METHOD_CALL                                         !2, 'format'
         54        SEND_VAL_EX                                              1.23457e+6
         55        DO_FCALL                                      0  $31     
         56        CONCAT                                           ~32     'M%C3%A1m+', $31
         57        CONCAT                                           ~33     ~32, '%0A'
         58        ECHO                                                     ~33
   31    59        ECHO                                                     '%0A'
   33    60        NEW                                              $34     'NumberFormatter'
         61        SEND_VAL_EX                                              'tn_TN'
         62        FETCH_CLASS_CONSTANT                             ~35     'NumberFormatter', 'CURRENCY'
         63        SEND_VAL_EX                                              ~35
         64        DO_FCALL                                      0          
         65        ASSIGN                                                   !2, $34
   34    66        INIT_METHOD_CALL                                         !2, 'format'
         67        SEND_VAL_EX                                              1.23457e+6
         68        DO_FCALL                                      0  $38     
         69        CONCAT                                           ~39     'M%C3%A1m+', $38
         70        CONCAT                                           ~40     ~39, '%0A'
         71        ECHO                                                     ~40
   35    72        ECHO                                                     '%0A'
         73      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.7 ms | 1400 KiB | 19 Q