3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Europe/Berlin"); $ts = 1490281920; $obj = new DateTime("@$ts", new \DateTimeZone("Europe/Berlin")); var_dump($obj->format('c')); $date = date("c", $ts); var_dump($date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNb3Z
function name:  (null)
number of ops:  29
compiled vars:  !0 = $ts, !1 = $obj, !2 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBerlin'
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, 1490281920
    6     4        NEW                                              $5      'DateTime'
          5        NOP                                                      
          6        FAST_CONCAT                                      ~6      '%40', !0
          7        SEND_VAL_EX                                              ~6
          8        NEW                                              $7      'DateTimeZone'
          9        SEND_VAL_EX                                              'Europe%2FBerlin'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $7
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !1, $5
    7    14        INIT_FCALL                                               'var_dump'
         15        INIT_METHOD_CALL                                         !1, 'format'
         16        SEND_VAL_EX                                              'c'
         17        DO_FCALL                                      0  $11     
         18        SEND_VAR                                                 $11
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'c'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $13     
         24        ASSIGN                                                   !2, $13
   10    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.51 ms | 1395 KiB | 19 Q