3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '2014-04-01'; date_default_timezone_set('America/Dominica'); $y = strtotime($date); var_dump(date('l dS \o\f F Y H:i:s | O :: Z', $y)); var_dump($y); date_default_timezone_set('Europe/Moscow'); $y = strtotime($date); var_dump(date('l dS \o\f F Y H:i:s | O :: Z', $y)); var_dump($y); date_default_timezone_set('UTC'); var_dump(strtotime($date)); var_dump(date("Y-m-d H:i:s", $y));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cj0sB
function name:  (null)
number of ops:  52
compiled vars:  !0 = $date, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-04-01'
    5     1        INIT_FCALL                                               'date_default_timezone_set'
          2        SEND_VAL                                                 'America%2FDominica'
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    7     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'l+dS+%5Co%5Cf+F+Y+H%3Ai%3As+%7C+O+%3A%3A+Z'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   10    18        INIT_FCALL                                               'date_default_timezone_set'
         19        SEND_VAL                                                 'Europe%2FMoscow'
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'strtotime'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $10     
         24        ASSIGN                                                   !1, $10
   12    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'l+dS+%5Co%5Cf+F+Y+H%3Ai%3As+%7C+O+%3A%3A+Z'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                         $12     
         30        SEND_VAR                                                 $12
         31        DO_ICALL                                                 
   13    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !1
         34        DO_ICALL                                                 
   15    35        INIT_FCALL                                               'date_default_timezone_set'
         36        SEND_VAL                                                 'UTC'
         37        DO_ICALL                                                 
   16    38        INIT_FCALL                                               'var_dump'
         39        INIT_FCALL                                               'strtotime'
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                         $16     
         42        SEND_VAR                                                 $16
         43        DO_ICALL                                                 
   17    44        INIT_FCALL                                               'var_dump'
         45        INIT_FCALL                                               'date'
         46        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         47        SEND_VAR                                                 !1
         48        DO_ICALL                                         $18     
         49        SEND_VAR                                                 $18
         50        DO_ICALL                                                 
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.96 ms | 1400 KiB | 21 Q