3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Sao_Paulo'); $data = new DateTime(); $formatter = new IntlDateFormatter('pt_BR', IntlDateFormatter::LONG, IntlDateFormatter::NONE, IntlDateFormatter::GREGORIAN); echo $formatter->format($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQoji
function name:  (null)
number of ops:  21
compiled vars:  !0 = $data, !1 = $formatter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FSao_Paulo'
          2        DO_ICALL                                                 
    4     3        NEW                                              $3      'DateTime'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
    5     6        NEW                                              $6      'IntlDateFormatter'
          7        SEND_VAL_EX                                              'pt_BR'
    6     8        FETCH_CLASS_CONSTANT                             ~7      'IntlDateFormatter', 'LONG'
          9        SEND_VAL_EX                                              ~7
    7    10        FETCH_CLASS_CONSTANT                             ~8      'IntlDateFormatter', 'NONE'
         11        SEND_VAL_EX                                              ~8
    8    12        FETCH_CLASS_CONSTANT                             ~9      'IntlDateFormatter', 'GREGORIAN'
         13        SEND_VAL_EX                                              ~9
         14        DO_FCALL                                      0          
    5    15        ASSIGN                                                   !1, $6
    9    16        INIT_METHOD_CALL                                         !1, 'format'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0  $12     
         19        ECHO                                                     $12
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.91 ms | 1386 KiB | 15 Q