3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_TIME,'fr_FR.utf8'); $fmt = new IntlDateFormatter( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::MEDIUM, 'America/New_York' ); echo 'First Formatted output is ' . $fmt->format(new \DateTime());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JOeNS
function name:  (null)
number of ops:  21
compiled vars:  !0 = $fmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 'fr_FR.utf8'
          3        DO_ICALL                                                 
    3     4        NEW                                              $2      'IntlDateFormatter'
    4     5        SEND_VAL_EX                                              'en_US'
    5     6        FETCH_CLASS_CONSTANT                             ~3      'IntlDateFormatter', 'FULL'
          7        SEND_VAL_EX                                              ~3
    6     8        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'MEDIUM'
          9        SEND_VAL_EX                                              ~4
    7    10        SEND_VAL_EX                                              'America%2FNew_York'
         11        DO_FCALL                                      0          
    3    12        ASSIGN                                                   !0, $2
    9    13        INIT_METHOD_CALL                                         !0, 'format'
         14        NEW                                              $7      'DateTime'
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $7
         17        DO_FCALL                                      0  $9      
         18        CONCAT                                           ~10     'First+Formatted+output+is+', $9
         19        ECHO                                                     ~10
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.35 ms | 1395 KiB | 15 Q