3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime('now'); $current_time = strftime('%Y%m%d', time()); echo (strftime('%Y%m%d', $timestamp) - $current_time) === 0;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ea769
function name:  (null)
number of ops:  19
compiled vars:  !0 = $timestamp, !1 = $current_time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'strftime'
          5        SEND_VAL                                                 '%25Y%25m%25d'
          6        INIT_FCALL                                               'time'
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    4    11        INIT_FCALL                                               'strftime'
         12        SEND_VAL                                                 '%25Y%25m%25d'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        SUB                                              ~8      $7, !1
         16        IS_IDENTICAL                                     ~9      ~8, 0
         17        ECHO                                                     ~9
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.29 ms | 1394 KiB | 19 Q