3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new IntlDateFormatter('en-US', IntlDateFormatter::SHORT, IntlDateFormatter::NONE, 'Europe/Berlin'); $DateTime = new \DateTime('2018-5-30'); $formattedDateTime = $formatter->format($DateTime); echo $formattedDateTime;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6OCqG
function name:  (null)
number of ops:  19
compiled vars:  !0 = $formatter, !1 = $DateTime, !2 = $formattedDateTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $3      'IntlDateFormatter'
          1        SEND_VAL_EX                                              'en-US'
          2        FETCH_CLASS_CONSTANT                             ~4      'IntlDateFormatter', 'SHORT'
          3        SEND_VAL_EX                                              ~4
          4        FETCH_CLASS_CONSTANT                             ~5      'IntlDateFormatter', 'NONE'
          5        SEND_VAL_EX                                              ~5
          6        SEND_VAL_EX                                              'Europe%2FBerlin'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $3
    5     9        NEW                                              $8      'DateTime'
         10        SEND_VAL_EX                                              '2018-5-30'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $8
    6    13        INIT_METHOD_CALL                                         !0, 'format'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !2, $11
    7    17        ECHO                                                     !2
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.26 ms | 1393 KiB | 13 Q