3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date_create('2000-01-01', timezone_open('Europe/Moscow')); echo date_format($date, 'Y-m-d H:i:sP') . PHP_EOL; date_timezone_set($date, timezone_open('Europe/Kyiv')); echo date_format($date, 'Y-m-d H:i:sP') . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5XYRa
function name:  (null)
number of ops:  28
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2000-01-01'
          2        INIT_FCALL                                               'timezone_open'
          3        SEND_VAL                                                 'Europe%2FMoscow'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    3     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                                                 'Europe%2FKyiv'
         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:
158.81 ms | 1395 KiB | 21 Q