3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime = new DateTime(); $formatter = new IntlDateFormatter('de_DE', IntlDateFormatter::SHORT, IntlDateFormatter::SHORT); $formatter->setPattern('D, d M Y H:i:s'); $now = $formatter->format($datetime); echo $now;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YbWDA
function name:  (null)
number of ops:  20
compiled vars:  !0 = $datetime, !1 = $formatter, !2 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        NEW                                              $6      'IntlDateFormatter'
          4        SEND_VAL_EX                                              'de_DE'
          5        FETCH_CLASS_CONSTANT                             ~7      'IntlDateFormatter', 'SHORT'
          6        SEND_VAL_EX                                              ~7
          7        FETCH_CLASS_CONSTANT                             ~8      'IntlDateFormatter', 'SHORT'
          8        SEND_VAL_EX                                              ~8
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    5    11        INIT_METHOD_CALL                                         !1, 'setPattern'
         12        SEND_VAL_EX                                              'D%2C+d+M+Y+H%3Ai%3As'
         13        DO_FCALL                                      0          
    7    14        INIT_METHOD_CALL                                         !1, 'format'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $12     
         17        ASSIGN                                                   !2, $12
    8    18        ECHO                                                     !2
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.45 ms | 1394 KiB | 13 Q