3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Stockholm'); echo date('T')."\n"; $dt = new DateTime('now', new DateTimeZone('Europe/Stockholm')); echo $dt->format('T')."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ltZXI
function name:  (null)
number of ops:  22
compiled vars:  !0 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FStockholm'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'T'
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      $2, '%0A'
          7        ECHO                                                     ~3
    4     8        NEW                                              $4      'DateTime'
          9        SEND_VAL_EX                                              'now'
         10        NEW                                              $5      'DateTimeZone'
         11        SEND_VAL_EX                                              'Europe%2FStockholm'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $5
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !0, $4
    5    16        INIT_METHOD_CALL                                         !0, 'format'
         17        SEND_VAL_EX                                              'T'
         18        DO_FCALL                                      0  $9      
         19        CONCAT                                           ~10     $9, '%0A'
         20        ECHO                                                     ~10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.17 ms | 1399 KiB | 17 Q