3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('GMT'); $now = strtotime("now"); echo "\nnow is $now"; $purchasedDate = strtotime($now); echo "\npurchasedDate is $purchasedDate";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jUUek
function name:  (null)
number of ops:  18
compiled vars:  !0 = $now, !1 = $purchasedDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'GMT'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'now'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    7     7        NOP                                                      
          8        FAST_CONCAT                                      ~5      '%0Anow+is+', !0
          9        ECHO                                                     ~5
    9    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
   10    14        NOP                                                      
         15        FAST_CONCAT                                      ~8      '%0ApurchasedDate+is+', !1
         16        ECHO                                                     ~8
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.94 ms | 1394 KiB | 17 Q