3v4l.org

run code in 500+ PHP versions simultaneously
<?php $timestamp = strtotime('0001-02-20 00:00:00 UTC'); 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/uMjtB
function name:  (null)
number of ops:  15
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                                                     '0001-02-20+00%3A00%3A00+UTC'
          2        DO_ICALL                                             $2      
          3        ASSIGN                                                       !0, $2
    5     4        CONCAT                                               ~4      !0, '%0A'
          5        ECHO                                                         ~4
    6     6        INIT_FCALL                                                   'date_create'
          7        CONCAT                                               ~5      '%40', !0
          8        SEND_VAL                                                     ~5
          9        DO_ICALL                                             $6      
         10        ASSIGN                                                       !1, $6
    7    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !1
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.4 ms | 2135 KiB | 16 Q