3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Freitag, 22. Feb 2019', 'Montag, 01. März 1999', 'Sonntag, 10. Feb 2019', 'Donnerstag, 3. August 2000' ]; // Eingabeformat $fmtin = new IntlDateFormatter( 'de_DE', IntlDateFormatter::FULL, IntlDateFormatter::NONE, 'Europe/Berlin', IntlDateFormatter::GREGORIAN ); // Ausgabeformat $fmtout = new IntlDateFormatter( 'de_DE', IntlDateFormatter::FULL, IntlDateFormatter::NONE, 'Europe/Berlin', IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd' ); foreach ($array as $date){ $ts = $fmtin->parse($date); echo 'Datum im ISO-Format lautet: ' .$fmtout->format($ts) . "\n"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/A3Hnv
function name:  (null)
number of ops:  39
compiled vars:  !0 = $array, !1 = $fmtin, !2 = $fmtout, !3 = $date, !4 = $ts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        NEW                                              $6      'IntlDateFormatter'
   11     2        SEND_VAL_EX                                              'de_DE'
   12     3        FETCH_CLASS_CONSTANT                             ~7      'IntlDateFormatter', 'FULL'
          4        SEND_VAL_EX                                              ~7
   13     5        FETCH_CLASS_CONSTANT                             ~8      'IntlDateFormatter', 'NONE'
          6        SEND_VAL_EX                                              ~8
   14     7        SEND_VAL_EX                                              'Europe%2FBerlin'
   15     8        FETCH_CLASS_CONSTANT                             ~9      'IntlDateFormatter', 'GREGORIAN'
          9        SEND_VAL_EX                                              ~9
         10        DO_FCALL                                      0          
   10    11        ASSIGN                                                   !1, $6
   19    12        NEW                                              $12     'IntlDateFormatter'
   20    13        SEND_VAL_EX                                              'de_DE'
   21    14        FETCH_CLASS_CONSTANT                             ~13     'IntlDateFormatter', 'FULL'
         15        SEND_VAL_EX                                              ~13
   22    16        FETCH_CLASS_CONSTANT                             ~14     'IntlDateFormatter', 'NONE'
         17        SEND_VAL_EX                                              ~14
   23    18        SEND_VAL_EX                                              'Europe%2FBerlin'
   24    19        FETCH_CLASS_CONSTANT                             ~15     'IntlDateFormatter', 'GREGORIAN'
         20        SEND_VAL_EX                                              ~15
   25    21        SEND_VAL_EX                                              'yyyy-MM-dd'
         22        DO_FCALL                                      0          
   19    23        ASSIGN                                                   !2, $12
   28    24      > FE_RESET_R                                       $18     !0, ->37
         25    > > FE_FETCH_R                                               $18, !3, ->37
   29    26    >   INIT_METHOD_CALL                                         !1, 'parse'
         27        SEND_VAR_EX                                              !3
         28        DO_FCALL                                      0  $19     
         29        ASSIGN                                                   !4, $19
   30    30        INIT_METHOD_CALL                                         !2, 'format'
         31        SEND_VAR_EX                                              !4
         32        DO_FCALL                                      0  $21     
         33        CONCAT                                           ~22     'Datum+im+ISO-Format+lautet%3A+', $21
         34        CONCAT                                           ~23     ~22, '%0A'
         35        ECHO                                                     ~23
   28    36      > JMP                                                      ->25
         37    >   FE_FREE                                                  $18
   32    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
124.67 ms | 1404 KiB | 13 Q