3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dt = date_create('2022-08-10 21:42'); $locale = 'en'; $formatter = new IntlDateFormatter( $locale, IntlDateFormatter::LONG, IntlDateFormatter::MEDIUM, null, null, //"d MMMM Y 'at' hh:mm a" ); $date = $formatter->format($dt); echo $date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XvhQ5
function name:  (null)
number of ops:  21
compiled vars:  !0 = $dt, !1 = $locale, !2 = $formatter, !3 = $date
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date_create'
          1        SEND_VAL                                                     '2022-08-10+21%3A42'
          2        DO_ICALL                                             $4      
          3        ASSIGN                                                       !0, $4
    4     4        ASSIGN                                                       !1, 'en'
    5     5        NEW                                                  $7      'IntlDateFormatter'
    6     6        SEND_VAR_EX                                                  !1
    7     7        FETCH_CLASS_CONSTANT                                 ~8      'IntlDateFormatter', 'LONG'
          8        SEND_VAL_EX                                                  ~8
    8     9        FETCH_CLASS_CONSTANT                                 ~9      'IntlDateFormatter', 'MEDIUM'
         10        SEND_VAL_EX                                                  ~9
    9    11        SEND_VAL_EX                                                  null
   10    12        SEND_VAL_EX                                                  null
    5    13        DO_FCALL                                          0          
         14        ASSIGN                                                       !2, $7
   13    15        INIT_METHOD_CALL                                             !2, 'format'
         16        SEND_VAR_EX                                                  !0
         17        DO_FCALL                                          0  $12     
         18        ASSIGN                                                       !3, $12
   14    19        ECHO                                                         !3
   15    20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.42 ms | 1879 KiB | 14 Q