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; 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/4YLuc
function name:  (null)
number of ops:  43
compiled vars:  !0 = $fmtRo, !1 = $fmtEn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'IntlDateFormatter'
    3     1        SEND_VAL_EX                                              'ro_RO'
    4     2        FETCH_CLASS_CONSTANT                             ~3      'IntlDateFormatter', 'MEDIUM'
          3        SEND_VAL_EX                                              ~3
    5     4        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'MEDIUM'
          5        SEND_VAL_EX                                              ~4
    6     6        SEND_VAL_EX                                              'Europe%2FBucharest'
    7     7        FETCH_CLASS_CONSTANT                             ~5      'IntlDateFormatter', 'GREGORIAN'
          8        SEND_VAL_EX                                              ~5
    8     9        SEND_VAL_EX                                              'dd+MMM+y%2C+HH%3Amm'
         10        DO_FCALL                                      0          
    2    11        ASSIGN                                                   !0, $2
   10    12        INIT_METHOD_CALL                                         !0, 'format'
         13        INIT_FCALL                                               'time'
         14        DO_ICALL                                         $8      
         15        SEND_VAR_NO_REF_EX                                       $8
         16        DO_FCALL                                      0  $9      
         17        ECHO                                                     $9
   12    18        ECHO                                                     '%0A'
   14    19        NEW                                              $10     'IntlDateFormatter'
   15    20        SEND_VAL_EX                                              'en_EN'
   16    21        FETCH_CLASS_CONSTANT                             ~11     'IntlDateFormatter', 'MEDIUM'
         22        SEND_VAL_EX                                              ~11
   17    23        FETCH_CLASS_CONSTANT                             ~12     'IntlDateFormatter', 'MEDIUM'
         24        SEND_VAL_EX                                              ~12
   18    25        SEND_VAL_EX                                              'Europe%2FBucharest'
   19    26        FETCH_CLASS_CONSTANT                             ~13     'IntlDateFormatter', 'GREGORIAN'
         27        SEND_VAL_EX                                              ~13
   20    28        SEND_VAL_EX                                              'dd+MMM+y%2C+HH%3Amm'
         29        DO_FCALL                                      0          
   14    30        ASSIGN                                                   !1, $10
   22    31        INIT_METHOD_CALL                                         !1, 'format'
         32        INIT_FCALL                                               'time'
         33        DO_ICALL                                         $16     
         34        SEND_VAR_NO_REF_EX                                       $16
         35        DO_FCALL                                      0  $17     
         36        ECHO                                                     $17
   24    37        ECHO                                                     '%0A'
   25    38        INIT_FCALL                                               'date'
         39        SEND_VAL                                                 'd+M+Y%2C+H%3Ai'
         40        DO_ICALL                                         $18     
         41        ECHO                                                     $18
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.58 ms | 1400 KiB | 17 Q