3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date=date_create("2018-02-20 06:54:57"); echo date_format($date,"Y-m-d H:i:s"); echo "\n"; $tz=timezone_open("Asia/Kolkata"); date_timezone_set($date, $tz); echo date_format($date,"Y-m-d H:i:s");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cgbc0
function name:  (null)
number of ops:  24
compiled vars:  !0 = $date, !1 = $tz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2018-02-20+06%3A54%3A57'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'date_format'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
    5     9        ECHO                                                     '%0A'
    6    10        INIT_FCALL                                               'timezone_open'
         11        SEND_VAL                                                 'Asia%2FKolkata'
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    7    14        INIT_FCALL                                               'date_timezone_set'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'date_format'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         21        DO_ICALL                                         $8      
         22        ECHO                                                     $8
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187 ms | 1395 KiB | 21 Q