3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime('0000-02-20 00:00:00'); print $timestamp . "\n"; $date_time = date_create('@' . $timestamp); print_r($date_time); $timestamp = strtotime('0001-02-20 00:00:00'); print $timestamp . "\n"; $date_time = date_create('@' . $timestamp); print_r($date_time);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sgbvY
function name:  (null)
number of ops:  29
compiled vars:  !0 = $timestamp, !1 = $date_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '0000-02-20+00%3A00%3A00'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        CONCAT                                           ~4      !0, '%0A'
          5        ECHO                                                     ~4
    5     6        INIT_FCALL                                               'date_create'
          7        CONCAT                                           ~5      '%40', !0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    8    14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 '0001-02-20+00%3A00%3A00'
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !0, $9
    9    18        CONCAT                                           ~11     !0, '%0A'
         19        ECHO                                                     ~11
   10    20        INIT_FCALL                                               'date_create'
         21        CONCAT                                           ~12     '%40', !0
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                         $13     
         24        ASSIGN                                                   !1, $13
   11    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.28 ms | 1395 KiB | 19 Q