3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dt = new DateTime('2015-02-01'); $formatter = new IntlDateFormatter('ro_RO', IntlDateFormatter::SHORT, IntlDateFormatter::SHORT); $formatter->setPattern('MMMM dd yyyy'); echo $formatter->format($dt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bQNah
function name:  (null)
number of ops:  20
compiled vars:  !0 = $dt, !1 = $formatter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'DateTime'
          1        SEND_VAL_EX                                                  '2015-02-01'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    5     4        NEW                                                  $5      'IntlDateFormatter'
          5        SEND_VAL_EX                                                  'ro_RO'
          6        FETCH_CLASS_CONSTANT                                 ~6      'IntlDateFormatter', 'SHORT'
          7        SEND_VAL_EX                                                  ~6
          8        FETCH_CLASS_CONSTANT                                 ~7      'IntlDateFormatter', 'SHORT'
          9        SEND_VAL_EX                                                  ~7
         10        DO_FCALL                                          0          
         11        ASSIGN                                                       !1, $5
    6    12        INIT_METHOD_CALL                                             !1, 'setPattern'
         13        SEND_VAL_EX                                                  'MMMM+dd+yyyy'
         14        DO_FCALL                                          0          
    8    15        INIT_METHOD_CALL                                             !1, 'format'
         16        SEND_VAR_EX                                                  !0
         17        DO_FCALL                                          0  $11     
         18        ECHO                                                         $11
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.25 ms | 3272 KiB | 13 Q