3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new IntlDateFormatter( 'nl_NL', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/London', IntlDateFormatter::GREGORIAN, "Y" ); echo $formatter->format( new DateTime('2017-12-31 12:00:00', new DateTimeZone('Europe/London')) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NdjNM
function name:  (null)
number of ops:  24
compiled vars:  !0 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'IntlDateFormatter'
    4     1        SEND_VAL_EX                                              'nl_NL'
    5     2        FETCH_CLASS_CONSTANT                             ~2      'IntlDateFormatter', 'FULL'
          3        SEND_VAL_EX                                              ~2
    6     4        FETCH_CLASS_CONSTANT                             ~3      'IntlDateFormatter', 'FULL'
          5        SEND_VAL_EX                                              ~3
    7     6        SEND_VAL_EX                                              'Europe%2FLondon'
    8     7        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'GREGORIAN'
          8        SEND_VAL_EX                                              ~4
    9     9        SEND_VAL_EX                                              'Y'
         10        DO_FCALL                                      0          
    3    11        ASSIGN                                                   !0, $1
   12    12        INIT_METHOD_CALL                                         !0, 'format'
   13    13        NEW                                              $7      'DateTime'
         14        SEND_VAL_EX                                              '2017-12-31+12%3A00%3A00'
         15        NEW                                              $8      'DateTimeZone'
         16        SEND_VAL_EX                                              'Europe%2FLondon'
         17        DO_FCALL                                      0          
         18        SEND_VAR_NO_REF_EX                                       $8
         19        DO_FCALL                                      0          
         20        SEND_VAR_NO_REF_EX                                       $7
         21        DO_FCALL                                      0  $11     
         22        ECHO                                                     $11
   14    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.1 ms | 1385 KiB | 13 Q