3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(gmdate('Y-m-d', 1399669200000 /1000 )); var_dump(gmdate('Y-m-d', 1399755600000 /1000 )); $dt = new DateTime('1399755600'); var_dump($dt->format('Y-m-d')); var_dump(strtotime('2014-05-10 23:00:00'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JpHG2
function name:  (null)
number of ops:  31
compiled vars:  !0 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'gmdate'
          2        SEND_VAL                                                 'Y-m-d'
          3        SEND_VAL                                                 1399669200
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'gmdate'
          9        SEND_VAL                                                 'Y-m-d'
         10        SEND_VAL                                                 1399755600
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                                 
    5    14        NEW                                              $5      'DateTime'
         15        SEND_VAL_EX                                              '1399755600'
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !0, $5
    6    18        INIT_FCALL                                               'var_dump'
         19        INIT_METHOD_CALL                                         !0, 'format'
         20        SEND_VAL_EX                                              'Y-m-d'
         21        DO_FCALL                                      0  $8      
         22        SEND_VAR                                                 $8
         23        DO_ICALL                                                 
    7    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'strtotime'
         26        SEND_VAL                                                 '2014-05-10+23%3A00%3A00'
         27        DO_ICALL                                         $10     
         28        SEND_VAR                                                 $10
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.05 ms | 1395 KiB | 19 Q