3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Sao_Paulo'); $data = new DateTime(); echo format($data); // $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/q5tgU
function name:  (null)
number of ops:  11
compiled vars:  !0 = $data
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                                              $2      'DateTime'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    5     6        INIT_FCALL_BY_NAME                                       'format'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
   10    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.99 ms | 1385 KiB | 15 Q