3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("intl.error_level", E_WARNING); ini_set("intl.default_locale", "nl"); $intlcal = IntlCalendar::createInstance('UTC'); $intlcal->setTime(strtotime('2012-02-29 00:00:00 +0000') * 1000); var_dump( intlcal_get_day_of_week_type($intlcal, IntlCalendar::DOW_SUNDAY), $intlcal->getDayOfWeekType(IntlCalendar::DOW_MONDAY), $intlcal->getDayOfWeekType(IntlCalendar::DOW_TUESDAY), $intlcal->getDayOfWeekType(IntlCalendar::DOW_FRIDAY), $intlcal->getDayOfWeekType(IntlCalendar::DOW_SATURDAY) ); ?> ==DONE==
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DKl4G
function name:  (null)
number of ops:  49
compiled vars:  !0 = $intlcal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'intl.error_level'
          2        SEND_VAL                                                 2
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'intl.default_locale'
          6        SEND_VAL                                                 'nl'
          7        DO_ICALL                                                 
    5     8        INIT_STATIC_METHOD_CALL                                  'IntlCalendar', 'createInstance'
          9        SEND_VAL_EX                                              'UTC'
         10        DO_FCALL                                      0  $3      
         11        ASSIGN                                                   !0, $3
    6    12        INIT_METHOD_CALL                                         !0, 'setTime'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 '2012-02-29+00%3A00%3A00+%2B0000'
         15        DO_ICALL                                         $5      
         16        MUL                                              ~6      $5, 1000
         17        SEND_VAL_EX                                              ~6
         18        DO_FCALL                                      0          
    7    19        INIT_FCALL                                               'var_dump'
    8    20        INIT_FCALL_BY_NAME                                       'intlcal_get_day_of_week_type'
         21        SEND_VAR_EX                                              !0
         22        FETCH_CLASS_CONSTANT                             ~8      'IntlCalendar', 'DOW_SUNDAY'
         23        SEND_VAL_EX                                              ~8
         24        DO_FCALL                                      0  $9      
         25        SEND_VAR                                                 $9
    9    26        INIT_METHOD_CALL                                         !0, 'getDayOfWeekType'
         27        FETCH_CLASS_CONSTANT                             ~10     'IntlCalendar', 'DOW_MONDAY'
         28        SEND_VAL_EX                                              ~10
         29        DO_FCALL                                      0  $11     
         30        SEND_VAR                                                 $11
   10    31        INIT_METHOD_CALL                                         !0, 'getDayOfWeekType'
         32        FETCH_CLASS_CONSTANT                             ~12     'IntlCalendar', 'DOW_TUESDAY'
         33        SEND_VAL_EX                                              ~12
         34        DO_FCALL                                      0  $13     
         35        SEND_VAR                                                 $13
   11    36        INIT_METHOD_CALL                                         !0, 'getDayOfWeekType'
         37        FETCH_CLASS_CONSTANT                             ~14     'IntlCalendar', 'DOW_FRIDAY'
         38        SEND_VAL_EX                                              ~14
         39        DO_FCALL                                      0  $15     
         40        SEND_VAR                                                 $15
   12    41        INIT_METHOD_CALL                                         !0, 'getDayOfWeekType'
         42        FETCH_CLASS_CONSTANT                             ~16     'IntlCalendar', 'DOW_SATURDAY'
         43        SEND_VAL_EX                                              ~16
         44        DO_FCALL                                      0  $17     
         45        SEND_VAR                                                 $17
         46        DO_ICALL                                                 
   16    47        ECHO                                                     '%3D%3DDONE%3D%3D'
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.75 ms | 1400 KiB | 19 Q