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'); $m = strtotime($date); var_dump($m); var_dump(date('l dS \o\f F Y H:i:s | O :: Z', $m)); 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/too8Z
function name:  (null)
number of ops:  60
compiled vars:  !0 = $date, !1 = $y, !2 = $m
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                                         $5      
          7        ASSIGN                                                   !1, $5
    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                                         $7      
         13        SEND_VAR                                                 $7
         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                                         $11     
         24        ASSIGN                                                   !1, $11
   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                                         $13     
         30        SEND_VAR                                                 $13
         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                                               'strtotime'
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                         $17     
         41        ASSIGN                                                   !2, $17
   17    42        INIT_FCALL                                               'var_dump'
         43        SEND_VAR                                                 !2
         44        DO_ICALL                                                 
   19    45        INIT_FCALL                                               'var_dump'
         46        INIT_FCALL                                               'date'
         47        SEND_VAL                                                 'l+dS+%5Co%5Cf+F+Y+H%3Ai%3As+%7C+O+%3A%3A+Z'
         48        SEND_VAR                                                 !2
         49        DO_ICALL                                         $20     
         50        SEND_VAR                                                 $20
         51        DO_ICALL                                                 
   20    52        INIT_FCALL                                               'var_dump'
         53        INIT_FCALL                                               'date'
         54        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         55        SEND_VAR                                                 !1
         56        DO_ICALL                                         $22     
         57        SEND_VAR                                                 $22
         58        DO_ICALL                                                 
         59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.61 ms | 1400 KiB | 21 Q