3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date_create('2018-07-17T20:00:00Z', timezone_open('UTC')); echo date_format($date, 'Y-m-d H:i:sP') . "\n"; date_timezone_set($date, timezone_open('America/New_York')); echo date_format($date, 'Y-m-d H:i:sP') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oO2UL
function name:  (null)
number of ops:  28
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2018-07-17T20%3A00%3A00Z'
          2        INIT_FCALL                                               'timezone_open'
          3        SEND_VAL                                                 'UTC'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    4     8        INIT_FCALL                                               'date_format'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'Y-m-d+H%3Ai%3AsP'
         11        DO_ICALL                                         $4      
         12        CONCAT                                           ~5      $4, '%0A'
         13        ECHO                                                     ~5
    5    14        INIT_FCALL                                               'date_timezone_set'
         15        SEND_VAR                                                 !0
         16        INIT_FCALL                                               'timezone_open'
         17        SEND_VAL                                                 'America%2FNew_York'
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
    6    21        INIT_FCALL                                               'date_format'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 'Y-m-d+H%3Ai%3AsP'
         24        DO_ICALL                                         $8      
         25        CONCAT                                           ~9      $8, '%0A'
         26        ECHO                                                     ~9
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.09 ms | 1395 KiB | 21 Q