3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime('0000-03-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/SMI46
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                                                 '0000-03-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.0.0


preferences:
148.37 ms | 1394 KiB | 19 Q