3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtotime(date('Y-m-d h:i:s', strtotime('-1 hours'))); echo " ||| "; echo strtotimedate('Y-m-d h:i:s', strtotime('-3 hours'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1EYhg
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '-1+hours'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $2      
         10        ECHO                                                     $2
    4    11        ECHO                                                     '+%7C%7C%7C+'
    5    12        INIT_FCALL_BY_NAME                                       'strtotimedate'
         13        SEND_VAL_EX                                              'Y-m-d+h%3Ai%3As'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 '-3+hours'
         16        DO_ICALL                                         $3      
         17        SEND_VAR_NO_REF_EX                                       $3
         18        DO_FCALL                                      0  $4      
         19        ECHO                                                     $4
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.79 ms | 1395 KiB | 17 Q