3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateFormat = new \IntlDateFormatter('ar_MO', \IntlDateFormatter::SHORT, \IntlDateFormatter::NONE); var_dump($dateFormat->getPattern()); var_dump($dateFormat->format(time())); var_dump($dateFormat->setPattern('d/M/y')); var_dump($dateFormat->format(time()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c4vFQ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $dateFormat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'IntlDateFormatter'
          1        SEND_VAL_EX                                              'ar_MO'
          2        FETCH_CLASS_CONSTANT                             ~2      'IntlDateFormatter', 'SHORT'
          3        SEND_VAL_EX                                              ~2
          4        FETCH_CLASS_CONSTANT                             ~3      'IntlDateFormatter', 'NONE'
          5        SEND_VAL_EX                                              ~3
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $1
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !0, 'getPattern'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !0, 'format'
         15        INIT_FCALL                                               'time'
         16        DO_ICALL                                         $8      
         17        SEND_VAR_NO_REF_EX                                       $8
         18        DO_FCALL                                      0  $9      
         19        SEND_VAR                                                 $9
         20        DO_ICALL                                                 
    6    21        INIT_FCALL                                               'var_dump'
         22        INIT_METHOD_CALL                                         !0, 'setPattern'
         23        SEND_VAL_EX                                              'd%2FM%2Fy'
         24        DO_FCALL                                      0  $11     
         25        SEND_VAR                                                 $11
         26        DO_ICALL                                                 
    7    27        INIT_FCALL                                               'var_dump'
         28        INIT_METHOD_CALL                                         !0, 'format'
         29        INIT_FCALL                                               'time'
         30        DO_ICALL                                         $13     
         31        SEND_VAR_NO_REF_EX                                       $13
         32        DO_FCALL                                      0  $14     
         33        SEND_VAR                                                 $14
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.35 ms | 1396 KiB | 17 Q