3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FORMAT = 'HP'; var_dump( (new DateTime(null, new DateTimeZone('UTC')))->format(FORMAT), (new DateTime(null, new DateTimeZone('EST')))->format(FORMAT), (new DateTime(null, new DateTimeZone('EDT')))->format(FORMAT) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iTeSL
function name:  (null)
number of ops:  40
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'FORMAT', 'HP'
    5     1        INIT_FCALL                                               'var_dump'
    6     2        NEW                                              $0      'DateTime'
          3        SEND_VAL_EX                                              null
          4        NEW                                              $1      'DateTimeZone'
          5        SEND_VAL_EX                                              'UTC'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $1
          8        DO_FCALL                                      0          
          9        INIT_METHOD_CALL                                         $0, 'format'
         10        FETCH_CONSTANT                                   ~4      'FORMAT'
         11        SEND_VAL_EX                                              ~4
         12        DO_FCALL                                      0  $5      
         13        SEND_VAR                                                 $5
    7    14        NEW                                              $6      'DateTime'
         15        SEND_VAL_EX                                              null
         16        NEW                                              $7      'DateTimeZone'
         17        SEND_VAL_EX                                              'EST'
         18        DO_FCALL                                      0          
         19        SEND_VAR_NO_REF_EX                                       $7
         20        DO_FCALL                                      0          
         21        INIT_METHOD_CALL                                         $6, 'format'
         22        FETCH_CONSTANT                                   ~10     'FORMAT'
         23        SEND_VAL_EX                                              ~10
         24        DO_FCALL                                      0  $11     
         25        SEND_VAR                                                 $11
    8    26        NEW                                              $12     'DateTime'
         27        SEND_VAL_EX                                              null
         28        NEW                                              $13     'DateTimeZone'
         29        SEND_VAL_EX                                              'EDT'
         30        DO_FCALL                                      0          
         31        SEND_VAR_NO_REF_EX                                       $13
         32        DO_FCALL                                      0          
         33        INIT_METHOD_CALL                                         $12, 'format'
         34        FETCH_CONSTANT                                   ~16     'FORMAT'
         35        SEND_VAL_EX                                              ~16
         36        DO_FCALL                                      0  $17     
         37        SEND_VAR                                                 $17
    5    38        DO_ICALL                                                 
    9    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.24 ms | 1014 KiB | 14 Q