3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmtRo = new IntlDateFormatter( 'ro_RO', IntlDateFormatter::MEDIUM, IntlDateFormatter::MEDIUM, 'Europe/Bucharest', IntlDateFormatter::GREGORIAN, "dd MMM y, HH:mm" ); echo $fmtRo->format(time()); echo PHP_EOL; $fmtEn = new IntlDateFormatter( 'en_EN', IntlDateFormatter::MEDIUM, IntlDateFormatter::MEDIUM, 'Europe/Bucharest', IntlDateFormatter::GREGORIAN, "dd MMM y, HH:mm" ); echo $fmtEn->format(time()); echo PHP_EOL; $fmtBg = new IntlDateFormatter( 'bg_BG', IntlDateFormatter::MEDIUM, IntlDateFormatter::MEDIUM, 'Europe/Bucharest', IntlDateFormatter::GREGORIAN, "dd MMM y, HH:mm" ); echo $fmtBg->format(time()); echo PHP_EOL; echo date ("d M Y, H:i");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TbVrP
function name:  (null)
number of ops:  62
compiled vars:  !0 = $fmtRo, !1 = $fmtEn, !2 = $fmtBg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'IntlDateFormatter'
    3     1        SEND_VAL_EX                                              'ro_RO'
    4     2        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'MEDIUM'
          3        SEND_VAL_EX                                              ~4
    5     4        FETCH_CLASS_CONSTANT                             ~5      'IntlDateFormatter', 'MEDIUM'
          5        SEND_VAL_EX                                              ~5
    6     6        SEND_VAL_EX                                              'Europe%2FBucharest'
    7     7        FETCH_CLASS_CONSTANT                             ~6      'IntlDateFormatter', 'GREGORIAN'
          8        SEND_VAL_EX                                              ~6
    8     9        SEND_VAL_EX                                              'dd+MMM+y%2C+HH%3Amm'
         10        DO_FCALL                                      0          
    2    11        ASSIGN                                                   !0, $3
   10    12        INIT_METHOD_CALL                                         !0, 'format'
         13        INIT_FCALL                                               'time'
         14        DO_ICALL                                         $9      
         15        SEND_VAR_NO_REF_EX                                       $9
         16        DO_FCALL                                      0  $10     
         17        ECHO                                                     $10
   12    18        ECHO                                                     '%0A'
   14    19        NEW                                              $11     'IntlDateFormatter'
   15    20        SEND_VAL_EX                                              'en_EN'
   16    21        FETCH_CLASS_CONSTANT                             ~12     'IntlDateFormatter', 'MEDIUM'
         22        SEND_VAL_EX                                              ~12
   17    23        FETCH_CLASS_CONSTANT                             ~13     'IntlDateFormatter', 'MEDIUM'
         24        SEND_VAL_EX                                              ~13
   18    25        SEND_VAL_EX                                              'Europe%2FBucharest'
   19    26        FETCH_CLASS_CONSTANT                             ~14     'IntlDateFormatter', 'GREGORIAN'
         27        SEND_VAL_EX                                              ~14
   20    28        SEND_VAL_EX                                              'dd+MMM+y%2C+HH%3Amm'
         29        DO_FCALL                                      0          
   14    30        ASSIGN                                                   !1, $11
   22    31        INIT_METHOD_CALL                                         !1, 'format'
         32        INIT_FCALL                                               'time'
         33        DO_ICALL                                         $17     
         34        SEND_VAR_NO_REF_EX                                       $17
         35        DO_FCALL                                      0  $18     
         36        ECHO                                                     $18
   25    37        ECHO                                                     '%0A'
   27    38        NEW                                              $19     'IntlDateFormatter'
   28    39        SEND_VAL_EX                                              'bg_BG'
   29    40        FETCH_CLASS_CONSTANT                             ~20     'IntlDateFormatter', 'MEDIUM'
         41        SEND_VAL_EX                                              ~20
   30    42        FETCH_CLASS_CONSTANT                             ~21     'IntlDateFormatter', 'MEDIUM'
         43        SEND_VAL_EX                                              ~21
   31    44        SEND_VAL_EX                                              'Europe%2FBucharest'
   32    45        FETCH_CLASS_CONSTANT                             ~22     'IntlDateFormatter', 'GREGORIAN'
         46        SEND_VAL_EX                                              ~22
   33    47        SEND_VAL_EX                                              'dd+MMM+y%2C+HH%3Amm'
         48        DO_FCALL                                      0          
   27    49        ASSIGN                                                   !2, $19
   35    50        INIT_METHOD_CALL                                         !2, 'format'
         51        INIT_FCALL                                               'time'
         52        DO_ICALL                                         $25     
         53        SEND_VAR_NO_REF_EX                                       $25
         54        DO_FCALL                                      0  $26     
         55        ECHO                                                     $26
   37    56        ECHO                                                     '%0A'
   38    57        INIT_FCALL                                               'date'
         58        SEND_VAL                                                 'd+M+Y%2C+H%3Ai'
         59        DO_ICALL                                         $27     
         60        ECHO                                                     $27
         61      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.46 ms | 945 KiB | 18 Q