3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (function_exists('date_default_timezone_set')) date_default_timezone_set('UTC'); $date = "30-12-1899 9:25:52 AM"; $date = strtotime($date); var_dump($date); echo date('Y-m-d H:i:s', $date);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/kVumc
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'date_default_timezone_set'
          2        DO_ICALL                                         $1      
          3      > JMPZ                                                     $1, ->7
          4    >   INIT_FCALL                                               'date_default_timezone_set'
          5        SEND_VAL                                                 'UTC'
          6        DO_ICALL                                                 
    3     7    >   ASSIGN                                                   !0, '30-12-1899+9%3A25%3A52+AM'
    4     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 1386 KiB | 23 Q