3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateFormat = new \IntlDateFormatter('ar_MO', \IntlDateFormatter::SHORT, \IntlDateFormatter::NONE); var_dump(date($dateFormat->getPattern())); var_dump(date('d/M/y')); var_dump($dateFormat->getPattern());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DUlfj
function name:  (null)
number of ops:  28
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_FCALL                                               'date'
         10        INIT_METHOD_CALL                                         !0, 'getPattern'
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                                 
    5    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'd%2FM%2Fy'
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                                 
    6    22        INIT_FCALL                                               'var_dump'
         23        INIT_METHOD_CALL                                         !0, 'getPattern'
         24        DO_FCALL                                      0  $11     
         25        SEND_VAR                                                 $11
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.11 ms | 1395 KiB | 17 Q