3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtotime(date('Y-m-d h:i:s', strtotime('-1 hours'))); echo " ||| "; echo strtotime(date('Y-m-d h:i:s', strtotime('-30 minutes')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cf0Y5
function name:  (null)
number of ops:  24
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                                               'strtotime'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d+h%3Ai%3As'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '-30+minutes'
         17        DO_ICALL                                         $3      
         18        SEND_VAR                                                 $3
         19        DO_ICALL                                         $4      
         20        SEND_VAR                                                 $4
         21        DO_ICALL                                         $5      
         22        ECHO                                                     $5
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164 ms | 1395 KiB | 17 Q